diff --git a/Mesh_3/demo/Mesh_3/CMakeLists.txt b/Mesh_3/demo/Mesh_3/CMakeLists.txt index b7c483faf1b..96f5d560c67 100644 --- a/Mesh_3/demo/Mesh_3/CMakeLists.txt +++ b/Mesh_3/demo/Mesh_3/CMakeLists.txt @@ -9,6 +9,13 @@ else() cmake_policy(VERSION 2.6) endif() +# Compatibility with CMake 3.0 +if(POLICY CMP0042) + # Do not enable the use of MACOSX_RPATH + # http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html + cmake_policy(SET CMP0042 OLD) +endif() + # Creates a new CMake option, turned ON by default option(ACTIVATE_MSVC_PRECOMPILED_HEADERS "Activate precompiled headers in MSVC" diff --git a/Polyhedron/demo/Polyhedron/CMakeLists.txt b/Polyhedron/demo/Polyhedron/CMakeLists.txt index 04b49e81c10..3f16dc30ebb 100644 --- a/Polyhedron/demo/Polyhedron/CMakeLists.txt +++ b/Polyhedron/demo/Polyhedron/CMakeLists.txt @@ -9,6 +9,13 @@ else() cmake_policy(VERSION 2.6) endif() +# Compatibility with CMake 3.0 +if(POLICY CMP0042) + # Do not enable the use of MACOSX_RPATH + # http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html + cmake_policy(SET CMP0042 OLD) +endif() + #option(POLYHEDRON_DEMO_ENABLE_FORWARD_DECL "In the Polyhedron demo, enable " OFF) #mark_as_advanced(POLYHEDRON_DEMO_ENABLE_FORWARD_DECL)