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)