From fb8b30663864d7be1fe3c4e051a35db4743a589c Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Mon, 1 Sep 2008 21:14:20 +0000 Subject: [PATCH] Fixed *REALLY ODD* problem with CMake not properly testing for CGAL_REFERENCE_DIR --- Installation/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index d97fb7a8269..64bcf1d7a2b 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -24,7 +24,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CGAL_CMAKE_MODULE_PATH} ) # This allows else(), endif(), etc... (without repeating the expression) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) -if ( ${CGAL_REFERENCE_CACHE_DIR} ) +message( STATUS "CGAL_REFERENCE_CACHE_DIR=${CGAL_REFERENCE_CACHE_DIR}" ) + +if ( NOT "${CGAL_REFERENCE_CACHE_DIR}" STREQUAL "" ) if ( EXISTS ${CGAL_REFERENCE_CACHE_DIR} ) if ( EXISTS ${CGAL_REFERENCE_CACHE_DIR}/CMakeCache.txt ) message( STATUS "Loading reference cache from ${CGAL_REFERENCE_CACHE_DIR}" )