From 692c94c1c9b5642cecb8fc7b6fa5ce3145b70ff1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 26 Feb 2014 21:51:28 +0000 Subject: [PATCH] Use an install name dir of @executable_path/../lib instead of @rpath. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ce214aabfc..6c16afaeb59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.34.1