From c7179b2c6c52d3bf121e3f77d16a5058b89be65b Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 22 Feb 2013 13:19:54 +0100 Subject: [PATCH] Hide the CMake variable "WITH_tests" from the public releases Trivial bug fix, that I have tested in both a public release and in a branch build. --- Installation/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index 01968efc15d..d714e6801ee 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -872,8 +872,9 @@ if ( NOT RUNNING_CGAL_AUTO_TEST ) add_programs(examples examples OFF ) add_programs(demo demos OFF ) - add_programs(test tests OFF ) - + if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/test") + add_programs(test tests OFF ) + endif() endif() #--------------------------------------------------------------------------------------------------