Remove CMake policy CMP0042. CMake 3.1 already support MACOSX_RPATH

This commit is contained in:
Luis Diaz Mas 2017-08-17 22:18:10 +02:00 committed by Luis Diaz Mas
parent 57cd78b517
commit d29b3b6a10

View File

@ -9,11 +9,7 @@
CMAKE_MINIMUM_REQUIRED( VERSION 3.1.0 )
PROJECT( exiv2 )
if( POLICY CMP0042 )
cmake_policy(SET CMP0042 NEW) # enable MACOSX_RPATH support
else()
SET(CMAKE_MACOSX_RPATH 1)
endif()
set(CMAKE_MACOSX_RPATH 1)
SET( PACKAGE_COPYRIGHT "Andreas Huggel" )
SET( PACKAGE_BUGREPORT "http://github.com/exiv2/exiv2" )