mirror of https://github.com/CGAL/cgal
Fix a bug
Do not add non-existent directories to `CGAL_INCLUDE_DIRS`. CMake-3.5.2 complains about that in header-only.
This commit is contained in:
parent
98890c9924
commit
5725835fc3
|
|
@ -794,7 +794,9 @@ set(CGAL_LIBRARIES_DIR ${CMAKE_BINARY_DIR}/lib)
|
|||
set(CGAL_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/include)
|
||||
|
||||
foreach (package ${CGAL_CONFIGURED_PACKAGES})
|
||||
if(EXISTS ${package}/include)
|
||||
set(CGAL_INCLUDE_DIRS ${CGAL_INCLUDE_DIRS} ${package}/include)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
include_directories (${CGAL_INCLUDE_DIRS})
|
||||
|
|
|
|||
Loading…
Reference in New Issue