CMake's load_cache builtin command is rather dangerous. With the disabling

of CGAL_Core on 64 bits platforms, the old libCGAL_Core.so from the
reference platforms were somehow used and linked with binaries.

This is an attempt to work around that issue.
This commit is contained in:
Laurent Rineau 2010-05-28 09:47:49 +00:00
parent 2d24384dc9
commit d7b05b2802
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ if ( RUNNING_CGAL_AUTO_TEST )
if ( EXISTS ${CGAL_REFERENCE_CACHE_DIR} )
if ( EXISTS ${CGAL_REFERENCE_CACHE_DIR}/CMakeCache.txt )
message( STATUS "Loading reference cache from ${CGAL_REFERENCE_CACHE_DIR}" )
load_cache( ${CGAL_REFERENCE_CACHE_DIR} )
load_cache( ${CGAL_REFERENCE_CACHE_DIR} EXCLUDE CGAL_Core_LIBRARY )
endif()
endif()
endif()