summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-07-07 11:07:01 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-07-07 11:07:01 +0200
commit8c4e920530a876513f755f3ff60813080e42f612 (patch)
tree2ccf115e7da769c2e6a92306e00ab63245f0c4af
parent7364469189558a8720b60880940a41e1a0d20452 (diff)
downloadcmocka-8c4e920530a876513f755f3ff60813080e42f612.tar.gz
cmocka-8c4e920530a876513f755f3ff60813080e42f612.tar.bz2
cmocka-8c4e920530a876513f755f3ff60813080e42f612.zip
cmake: Fix warning on OSX
-rw-r--r--cmake/Modules/DefineCMakeDefaults.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Modules/DefineCMakeDefaults.cmake b/cmake/Modules/DefineCMakeDefaults.cmake
index 22eda6f..a08eca1 100644
--- a/cmake/Modules/DefineCMakeDefaults.cmake
+++ b/cmake/Modules/DefineCMakeDefaults.cmake
@@ -28,3 +28,9 @@ endif (NOT CMAKE_BUILD_TYPE)
# Create the compile command database for clang by default
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+
+if (APPLE)
+ set(CMAKE_MACOSX_RPATH ON)
+ set(CMAKE_SKIP_BUILD_RPATH FALSE)
+ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+endif(APPLE)