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() #--------------------------------------------------------------------------------------------------