From 72465a81aea2466fd4a7be184308a138381d80d3 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Fri, 6 Feb 2015 13:32:29 +0100 Subject: [PATCH] fixed cmake rpath policy --- libnatspec/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnatspec/CMakeLists.txt b/libnatspec/CMakeLists.txt index e813d0221..b5bd7903e 100644 --- a/libnatspec/CMakeLists.txt +++ b/libnatspec/CMakeLists.txt @@ -4,6 +4,8 @@ cmake_policy(SET CMP0020 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) cmake_policy(SET CMP0043 OLD) endif() set(CMAKE_AUTOMOC OFF)