Sneak in the same PR a small patch to cgal_create_release_with_cmake

`TESTSUITE` and `PUBLIC` are exclusive. Let's make `TESTSUITE`
the dominant one.
This commit is contained in:
Laurent Rineau
2019-02-28 14:28:59 +01:00
parent 8eee6f3e0c
commit eb9687aaf4
@@ -107,7 +107,7 @@ if(EXISTS ${release_dir})
file(REMOVE_RECURSE ${release_dir})
endif()
if (PUBLIC)
if (PUBLIC AND NOT TESTSUITE)
message(STATUS "Creating a public release ${CGAL_VERSION} in ${release_dir}")
else()
message(STATUS "Creating an internal release ${CGAL_VERSION} in ${release_dir}")
@@ -274,7 +274,7 @@ file(REMOVE ${release_dir}/include/CGAL/license/README.md)
file(REMOVE ${release_dir}/include/CGAL/license/gpl.h.in)
file(REMOVE ${release_dir}/include/CGAL/license/package_list.txt)
if(PUBLIC) # we are not creating an internal release.
if(PUBLIC AND NOT TESTSUITE) # we are not creating an internal release.
# Taken from create_new_release.
file(REMOVE_RECURSE ${release_dir}/test)
file(REMOVE_RECURSE ${release_dir}/package_info)