cmake: Fix warning on OSX
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 7 Jul 2015 09:07:01 +0000 (11:07 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 7 Jul 2015 09:07:01 +0000 (11:07 +0200)
cmake/Modules/DefineCMakeDefaults.cmake

index 22eda6f..a08eca1 100644 (file)
@@ -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)