aboutsummaryrefslogtreecommitdiff
path: root/cmake/policies.cmake
diff options
context:
space:
mode:
authorHoward Butler <howard@hobu.co>2015-02-17 16:52:44 +0000
committerHoward Butler <howard@hobu.co>2015-02-17 16:52:44 +0000
commitb6db90d054e78b1331e117b03be8470c1d251b3e (patch)
treef30231c24621b486278803fcad9576de953797b8 /cmake/policies.cmake
parent3e6f53a7a90b6e2eec59f78c36ddb87e693c55b9 (diff)
downloadPROJ-b6db90d054e78b1331e117b03be8470c1d251b3e.tar.gz
PROJ-b6db90d054e78b1331e117b03be8470c1d251b3e.zip
#256: CMake tweaks
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2608 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'cmake/policies.cmake')
-rw-r--r--cmake/policies.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/policies.cmake b/cmake/policies.cmake
new file mode 100644
index 00000000..c16fbc12
--- /dev/null
+++ b/cmake/policies.cmake
@@ -0,0 +1,5 @@
+if (CMAKE_MAJOR_VERSION GREATER 2)
+ cmake_policy(SET CMP0022 OLD) # interface link libraries
+ cmake_policy(SET CMP0042 NEW) # osx rpath
+ cmake_policy(SET CMP0011 NEW) # policy setting
+endif()