now policy CMP0042 is set to OLD

This reverts commit 61e99b1040b80685c70c57cfb23f92e898cd41fb.
This commit is contained in:
debris 2015-08-05 23:48:19 +02:00
parent 876f54694a
commit cbe7593460

View File

@ -1,10 +1,4 @@
cmake_policy(SET CMP0015 NEW)
# this policy was introduced in cmake 3.0
# remove if, once 3.0 will be used on unix
if (${CMAKE_MAJOR_VERSION} GREATER 2)
# old policy do not use MACOSX_RPATH
cmake_policy(SET CMP0042 OLD)
endif()
set(CMAKE_AUTOMOC OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB")