diff --git a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt index 3c0f833d148..ea0a7f36771 100644 --- a/Surface_mesher/examples/Surface_mesher/CMakeLists.txt +++ b/Surface_mesher/examples/Surface_mesher/CMakeLists.txt @@ -24,8 +24,11 @@ if ( CGAL_FOUND AND CGAL_ImageIO_FOUND ) create_single_source_cgal_program( "mesh_an_implicit_function.cpp" ) else() + if(RUNNING_CGAL_AUTO_TEST) + # Just to avoid a warning from CMake if that variable is set on the command line... + endif() - message(STATUS "NOTICE: This program requires the CGAL and CGAL ImageIO libraries, and will not be compiled.") + message(STATUS "NOTICE: This program requires the CGAL and CGAL ImageIO libraries, and will not be compiled.") endif()