diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-07-07 11:07:01 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-07-07 11:07:01 +0200 |
commit | 8c4e920530a876513f755f3ff60813080e42f612 (patch) | |
tree | 2ccf115e7da769c2e6a92306e00ab63245f0c4af | |
parent | 7364469189558a8720b60880940a41e1a0d20452 (diff) | |
download | cmocka-8c4e920530a876513f755f3ff60813080e42f612.tar.gz cmocka-8c4e920530a876513f755f3ff60813080e42f612.tar.bz2 cmocka-8c4e920530a876513f755f3ff60813080e42f612.zip |
cmake: Fix warning on OSX
-rw-r--r-- | cmake/Modules/DefineCMakeDefaults.cmake | 6 |
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) |