From fdb1dc64a056a9c09a9672ddac62b046fb4b1c8e Mon Sep 17 00:00:00 2001 From: Eric Berberich Date: Mon, 22 Oct 2012 14:53:39 +0000 Subject: [PATCH] remove a warning on RUNNING_CGAL_AUTO_TEST --- Surface_mesher/examples/Surface_mesher/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()