From 8f61243a13f1ef96163950aaadc3b10506e20308 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 19 Oct 2018 10:18:37 +0200 Subject: [PATCH] Move one include after the definition of CGAL_MODULES_DIR --- Installation/lib/cmake/CGAL/CGALConfig.cmake | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Installation/lib/cmake/CGAL/CGALConfig.cmake b/Installation/lib/cmake/CGAL/CGALConfig.cmake index 035a8354138..35d6242f5c0 100644 --- a/Installation/lib/cmake/CGAL/CGALConfig.cmake +++ b/Installation/lib/cmake/CGAL/CGALConfig.cmake @@ -13,7 +13,7 @@ if(CGAL_BUILDING_LIBS) list(APPEND CGAL_LIBRARIES CGAL_${comp}) endif() endforeach() - include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) + # We don't know yet CGAL_MODULES_DIR: include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) return() endif() @@ -31,12 +31,10 @@ foreach(cgal_lib ${CGAL_LIBRARIES}) endif() endforeach() if(CGALConfig_all_targets_are_defined) - include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) + # We don't know yet CGAL_MODULES_DIR: include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) return() endif() -include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) - message(STATUS "Using header-only CGAL") get_filename_component(CGAL_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) @@ -137,6 +135,7 @@ endforeach() # include(${CGAL_MODULES_DIR}/CGAL_Macros.cmake) +include(${CGAL_MODULES_DIR}/CGAL_CreateSingleSourceCGALProgram.cmake) # Temporary? Change the CMAKE module path cgal_setup_module_path()