From 9a9cd62957759bc82a49987bb96070e836598cea Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 7 Jun 2015 15:57:01 +0200 Subject: [PATCH] Set RPATH on Mac --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5