Add a workaround in src/CMakeLists.txt, to avoid that a variable

WITH_CGAL_Core is copied from the reference cache, if Core is disabled
(on 64bits platforms).
This commit is contained in:
Laurent Rineau 2010-06-23 09:04:56 +00:00
parent a12ef8ed3c
commit 4a3b9888d6
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ macro( configure_component DIR COMPONENT )
endif()
endmacro()
if(COMMAND unset)
# Workaround: WITH_CGAL_Core can have been loaded from an old reference
# cache Then remove it from the cache, and re-add it only if CGAL_Core
# can be configured.
unset(WITH_CGAL_Core CACHE)
endif()
if(NOT CGAL_NO_CORE)
configure_component( CGALCore Core )
endif(NOT CGAL_NO_CORE)