Use an install name dir of @executable_path/../lib instead of @rpath.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 21:51:28 +0000 (21:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Feb 2014 21:51:28 +0000 (21:51 +0000)
Using @executable_path/../lib matches what we have on Makefiles and works
with older versions of OS X too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202302 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 2ce214aabfcd25744b5396ea14103bf16a7c3194..6c16afaeb59a031296056209addf35ae45b1b197 100644 (file)
@@ -440,7 +440,7 @@ set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib )
 
 set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
 if (APPLE)
-  set(CMAKE_INSTALL_NAME_DIR "@rpath")
+  set(CMAKE_INSTALL_NAME_DIR "@executable_path/../lib")
   set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
 else(UNIX)
   if(NOT DEFINED CMAKE_INSTALL_RPATH)