From cd79383d5b1bbe84f1ad363247c3ce54b6209931 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 22 May 2018 14:45:04 +0200 Subject: [PATCH] Fix `make install` with the tarball and header-only --- Installation/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index d5173fdf76b..0ae9026bb21 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -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)