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()