Fixed *REALLY ODD* problem with CMake not properly testing for CGAL_REFERENCE_DIR

This commit is contained in:
Fernando Cacciola 2008-09-01 21:14:20 +00:00
parent 04a8b4ee14
commit fb8b306638
1 changed files with 3 additions and 1 deletions

View File

@ -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}" )