./doc/ is not shipped in public tarballs

This commit is contained in:
Laurent Rineau 2016-02-10 18:54:59 +01:00
parent 526e99b77b
commit aea00e0519
1 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ You must disable CGAL_ENABLE_CHECK_HEADERS.")
endif()
endif( CGAL_BRANCH_BUILD )
if(NOT CGAL_BRANCH_BUILD)
if(NOT CGAL_BRANCH_BUILD AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc")
# in a non-branch build this is the top-level CMakeLists.txt
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/doc/")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/doc")
endif()