Merge pull request #6597 from lrineau/Installation_CGAL_include_paths_are_first-GF

Add CGAL include paths first
This commit is contained in:
Laurent Rineau 2022-06-08 17:33:44 +02:00
commit f2b9278883
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)