From e43b1e42ba14f10935113f52d4e5e3a52a0bc33c Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 14 Jul 2015 16:06:53 +0200 Subject: [PATCH] Do include the export file if CMP0024 does not exist With CMake-2.8.11, CMP0024 does not yet exist, and the target aliasing feature does not exist either. So the only solution is to include the export file. --- Installation/cmake/modules/CGALConfig_binary.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Installation/cmake/modules/CGALConfig_binary.cmake.in b/Installation/cmake/modules/CGALConfig_binary.cmake.in index c32590ff026..70c6c304956 100644 --- a/Installation/cmake/modules/CGALConfig_binary.cmake.in +++ b/Installation/cmake/modules/CGALConfig_binary.cmake.in @@ -12,7 +12,9 @@ get_filename_component(CGAL_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) # The else condition of this code is intentionally not present in # CGALConfig_install.cmake.in since it cannot happen there. -if(NOT CGAL_BUILDING_LIBS) +# Note also that for CMake<=2.8.11 (detected by the absence of CMP0024), +# the else() condition is never used. +if(NOT POLICY CMP0024 OR NOT CGAL_BUILDING_LIBS) include("${CGAL_CONFIG_DIR}/CGALExports.cmake") macro(CGAL_get_property_optional VAR TARGET PROPERTY)