From 33af7ab5dc809f45f5d3549ac310f2a05aa0e092 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 16 Aug 2012 10:03:35 +0000 Subject: [PATCH] Quick fix for CGAL_ENABLE_PRECONFIG: hide it If CGAL_ENABLE_PRECONFIG is set to OFF, currently the CMake configuration fails. That option is turned into an internal cache variable set to ON by default. --- Installation/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 2bf74c29d9d..f724a84744d 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -578,7 +578,12 @@ cache_set(CGAL_3RD_PARTY_LIBRARIES "" ) cache_set(CGAL_3RD_PARTY_LIBRARIES_DIRS "" ) # default is on, but some use-cases need to set it to off, e.g., debian packages -option( CGAL_ENABLE_PRECONFIG "Select to allow to preconfiguration of external libraries" ON) +## Laurent Rineau: hide this variable. Currently the configuration fails if +## it is set to false. (2012/08/16) +#option( CGAL_ENABLE_PRECONFIG "Select to allow to preconfiguration of external libraries" ON) +set( CGAL_ENABLE_PRECONFIG ON CACHE INTERNAL "Select to allow to use all preconfigured external libraries") + + # additional info: some header files in CGAL add additional code if # certain optional libs are installed, and some examples/tests rely on # this; e.g. in MPFI/RS in Algebraic_kernel_d. For these cases CGAL