From: James Turner Date: Sun, 7 Jun 2015 13:57:01 +0000 (+0200) Subject: Set RPATH on Mac X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9a9cd62957759bc82a49987bb96070e836598cea;p=simgear.git Set RPATH on Mac --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c0732be0..74056eea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)