mirror of https://github.com/CGAL/cgal
Fix CMAKE_NO_SYSTEM_FROM_IMPORTED
This commit is contained in:
parent
d979e070be
commit
89cf5c5547
|
|
@ -115,6 +115,18 @@ include(${CGAL_MODULES_DIR}/CGAL_enable_end_of_configuration_hook.cmake)
|
||||||
|
|
||||||
set(CGAL_USE_FILE ${CGAL_MODULES_DIR}/UseCGAL.cmake)
|
set(CGAL_USE_FILE ${CGAL_MODULES_DIR}/UseCGAL.cmake)
|
||||||
|
|
||||||
|
include(${CGAL_CONFIG_DIR}/CGALConfigVersion.cmake)
|
||||||
|
|
||||||
|
# Temporary? Change the CMAKE module path
|
||||||
|
cgal_setup_module_path()
|
||||||
|
|
||||||
|
include(${CGAL_MODULES_DIR}/CGAL_target_use_TBB.cmake)
|
||||||
|
|
||||||
|
if( CGAL_DEV_MODE OR RUNNING_CGAL_AUTO_TEST OR CGAL_TEST_SUITE )
|
||||||
|
# Do not use -isystem for CGAL include paths
|
||||||
|
set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
foreach(comp ${CGAL_FIND_COMPONENTS})
|
foreach(comp ${CGAL_FIND_COMPONENTS})
|
||||||
if(NOT comp MATCHES "Core|ImageIO|Qt5")
|
if(NOT comp MATCHES "Core|ImageIO|Qt5")
|
||||||
message(FATAL_ERROR "The requested CGAL component ${comp} does not exist!")
|
message(FATAL_ERROR "The requested CGAL component ${comp} does not exist!")
|
||||||
|
|
@ -184,19 +196,3 @@ if (NOT TARGET CGAL::CGAL_Basic_viewer)
|
||||||
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
|
INTERFACE_LINK_LIBRARIES CGAL::CGAL_Qt5)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(${CGAL_CONFIG_DIR}/CGALConfigVersion.cmake)
|
|
||||||
|
|
||||||
#
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
# Temporary? Change the CMAKE module path
|
|
||||||
cgal_setup_module_path()
|
|
||||||
|
|
||||||
set(CGAL_USE_FILE ${CGAL_MODULES_DIR}/UseCGAL.cmake)
|
|
||||||
include(${CGAL_MODULES_DIR}/CGAL_target_use_TBB.cmake)
|
|
||||||
|
|
||||||
if( CGAL_DEV_MODE OR RUNNING_CGAL_AUTO_TEST OR CGAL_TEST_SUITE )
|
|
||||||
# Do not use -isystem for CGAL include paths
|
|
||||||
set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue