mirror of https://github.com/CGAL/cgal
Merge pull request #6597 from lrineau/Installation_CGAL_include_paths_are_first-GF
Add CGAL include paths first
This commit is contained in:
commit
f2b9278883
|
|
@ -75,6 +75,13 @@ endif()
|
||||||
# keyword.
|
# keyword.
|
||||||
#
|
#
|
||||||
function(CGAL_setup_CGAL_dependencies target)
|
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)
|
if(CGAL_DISABLE_GMP)
|
||||||
target_compile_definitions(${target} INTERFACE CGAL_DISABLE_GMP=1)
|
target_compile_definitions(${target} INTERFACE CGAL_DISABLE_GMP=1)
|
||||||
else()
|
else()
|
||||||
|
|
@ -96,13 +103,6 @@ function(CGAL_setup_CGAL_dependencies target)
|
||||||
|
|
||||||
use_CGAL_Boost_support(${target} INTERFACE)
|
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)
|
# Make CGAL depend on threads-support (for Epeck and Epeck_d)
|
||||||
if(CGAL_HAS_NO_THREADS)
|
if(CGAL_HAS_NO_THREADS)
|
||||||
target_compile_definitions(${target} INTERFACE CGAL_HAS_NO_THREADS)
|
target_compile_definitions(${target} INTERFACE CGAL_HAS_NO_THREADS)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue