Fix for CMake 3.0

Trivial fix for master.
This commit is contained in:
Laurent Rineau 2014-08-06 17:04:28 +02:00
parent ca8f719152
commit c42216e48b
2 changed files with 14 additions and 0 deletions

View File

@ -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"

View File

@ -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)