Silence cmake 3.0+ warnings about MACOSX_RPATH

This commit is contained in:
Ying Xiong 2015-04-06 16:37:06 -04:00 committed by Dikay900
parent a81374c1d7
commit 82668e06d4

View File

@ -52,6 +52,11 @@ if(POLICY CMP0026)
cmake_policy(SET CMP0026 OLD)
endif()
if (POLICY CMP0042)
# silence cmake 3.0+ warnings about MACOSX_RPATH
cmake_policy(SET CMP0042 OLD)
endif()
# must go before the project command
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
if(DEFINED CMAKE_BUILD_TYPE AND CMAKE_VERSION VERSION_GREATER "2.8")