Add CGAL include paths first

This commit is contained in:
Laurent Rineau 2022-05-19 14:38:35 +02:00
parent 2b547ec58a
commit 35ec6c83ac
1 changed files with 7 additions and 7 deletions

View File

@ -75,6 +75,13 @@ endif()
# keyword.
#
function(CGAL_setup_CGAL_dependencies target)
foreach(dir ${CGAL_INCLUDE_DIRS})
target_include_directories(${target} INTERFACE
$<BUILD_INTERFACE:${dir}>)
endforeach()
target_include_directories(${target} INTERFACE
$<INSTALL_INTERFACE:include>)
if(CGAL_DISABLE_GMP)
target_compile_definitions(${target} INTERFACE CGAL_DISABLE_GMP=1)
else()
@ -96,13 +103,6 @@ function(CGAL_setup_CGAL_dependencies target)
use_CGAL_Boost_support(${target} INTERFACE)
foreach(dir ${CGAL_INCLUDE_DIRS})
target_include_directories(${target} INTERFACE
$<BUILD_INTERFACE:${dir}>)
endforeach()
target_include_directories(${target} INTERFACE
$<INSTALL_INTERFACE:include>)
# Make CGAL depend on threads-support (for Epeck and Epeck_d)
if(CGAL_HAS_NO_THREADS)
target_compile_definitions(${target} INTERFACE CGAL_HAS_NO_THREADS)