Set RPATH on Mac

This commit is contained in:
James Turner 2015-06-07 15:57:01 +02:00
parent a9742fba7c
commit 9a9cd62957

View File

@ -19,6 +19,9 @@ include (CheckCXXCompilerFlag)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7) set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
set(CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk) 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) project(SimGear)
# read 'version' file into a variable (stripping any newlines or spaces) # read 'version' file into a variable (stripping any newlines or spaces)