]> git.mxchange.org Git - simgear.git/commitdiff
Set RPATH on Mac
authorJames Turner <zakalawe@mac.com>
Sun, 7 Jun 2015 13:57:01 +0000 (15:57 +0200)
committerJames Turner <zakalawe@mac.com>
Sun, 7 Jun 2015 13:57:01 +0000 (15:57 +0200)
CMakeLists.txt

index c0732be0d761fb9b953af64ec2632fbc5333aaa9..74056eeae2cf7e53205a9e045f3fcd1ad3a8cb52 100644 (file)
@@ -19,6 +19,9 @@ include (CheckCXXCompilerFlag)
 set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
 set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk)
 
+# only relevant for building shared libs but let's set it regardless
+set(CMAKE_OSX_RPATH 1)
+
 project(SimGear)
 
 # read 'version' file into a variable (stripping any newlines or spaces)