mirror of https://github.com/CGAL/cgal
Avoid warnings from CMake when variables are set on the command line
This commit is contained in:
parent
86cf6167ff
commit
c8b3343358
|
|
@ -5,6 +5,13 @@ project( Set_movable_separability_2_Tests )
|
|||
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
if (RUNNING_CGAL_AUTO_TEST)
|
||||
# Just to avoid a warning from CMake when that variable is set on the command line...
|
||||
endif()
|
||||
if (CGAL_DIR)
|
||||
# Just to avoid a warning from CMake when that variable is set on the command line...
|
||||
endif()
|
||||
|
||||
list(FIND CMAKE_CXX_COMPILE_FEATURES cxx_generalized_initializers has_cpp11)
|
||||
if (has_cpp11 LESS 0)
|
||||
message(STATUS "NOTICE: These examples requires a C++11 compiler and will not be compiled.")
|
||||
|
|
@ -25,12 +32,5 @@ if (CGAL_FOUND)
|
|||
create_single_source_cgal_program( "test_is_pullout_directions_single_mold_trans_cast.cpp" )
|
||||
|
||||
else()
|
||||
if (RUNNING_CGAL_AUTO_TEST)
|
||||
# Just to suppress a warning from CMake when that variable is set on the command line...
|
||||
endif()
|
||||
if (CGAL_DIR)
|
||||
# Just to suppress a warning from CMake when that variable is set on the command line...
|
||||
endif()
|
||||
|
||||
message(STATUS "This program requires the CGAL library, and will not be compiled.")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue