Fix the INTERFACE_INCLUDE_DIRECTORIES of CGAL

This commit is contained in:
Laurent Rineau 2016-09-09 17:32:54 +02:00
parent 23a1c3ee54
commit 98890c9924
1 changed files with 6 additions and 0 deletions

View File

@ -30,4 +30,10 @@ function(CGAL_setup_CGAL_dependencies target)
endif()
use_CGAL_Boost_support(${target} ${keyword})
foreach(dir ${CGAL_INCLUDE_DIRS})
target_include_directories(${target} ${keyword}
$<BUILD_INTERFACE:${dir}>)
endforeach()
target_include_directories(${target} ${keyword}
$<INSTALL_INTERFACE:include/CGAL>)
endfunction()