From 4a3b9888d6d2e265eef92d1fb34df641471975c2 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 23 Jun 2010 09:04:56 +0000 Subject: [PATCH] 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). --- Installation/src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Installation/src/CMakeLists.txt b/Installation/src/CMakeLists.txt index 89c80f8e3c2..da125a00ca1 100644 --- a/Installation/src/CMakeLists.txt +++ b/Installation/src/CMakeLists.txt @@ -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)