Merge pull request #3107 from lrineau/Installation-fix_make_install_header_only-lrineau

Fix `make install` with the tarball and header-only
This commit is contained in:
Laurent Rineau 2018-05-25 10:42:19 +02:00
commit 3216107917
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)