From 13fc4020d6ae8a513cabf90e417602f02578ad40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20M=C3=BCthing?= <muething@dune-project.org> Date: Wed, 1 Jul 2015 18:12:44 +0200 Subject: [PATCH] [CMake][Release] Use @rpath on OS X if possible CMake >= 2.8.12 can optionally use @rpath to embed dynamic linker paths into shared libraries on OS X. This greatly improves reliability with libraries in non-standard locations and should definitely be turned on by default. --- cmake/modules/DuneMacros.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/modules/DuneMacros.cmake b/cmake/modules/DuneMacros.cmake index ced4a0bf8..abb335a53 100644 --- a/cmake/modules/DuneMacros.cmake +++ b/cmake/modules/DuneMacros.cmake @@ -76,6 +76,9 @@ # library BASENAME # +# Make CMake use rpath on OS X +cmake_policy(SET CMP0042 NEW) + enable_language(C) # Enable C to skip CXX bindings for some tests. include(FeatureSummary) -- GitLab