Fix `make install` with the tarball and header-only

This commit is contained in:
Laurent Rineau 2018-05-22 14:45:04 +02:00
parent 413682ebc1
commit cd79383d5b
1 changed files with 3 additions and 1 deletions

View File

@ -890,7 +890,9 @@ foreach (dir ${CGAL_CONFIGURED_PACKAGES})
install(DIRECTORY ${dir}/include/CGAL DESTINATION ${CGAL_INSTALL_INC_DIR} PATTERN ".svn" EXCLUDE)
endif()
endforeach()
install(DIRECTORY ${CMAKE_BINARY_DIR}/include/CGAL DESTINATION ${CGAL_INSTALL_INC_DIR} PATTERN ".svn" EXCLUDE)
if(EXISTS ${CMAKE_BINARY_DIR}/include/CGAL)
install(DIRECTORY ${CMAKE_BINARY_DIR}/include/CGAL DESTINATION ${CGAL_INSTALL_INC_DIR} PATTERN ".svn" EXCLUDE)
endif()
file(GLOB scripts "scripts/*")
list(SORT scripts)