Displaying 3 results from an estimated 3 matches for "cmake_install_rpath".
2014 May 29
3
[LLVMdev] [PATCH] Use GCC_INSTALL_PREFIX for rpath if set.
...ou don't want to install LLVM into the GCC_INSTALL_PREFIX.
---
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ec3e33..c85a028 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -450,7 +450,12 @@ if (APPLE)
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
else(UNIX)
if(NOT DEFINED CMAKE_INSTALL_RPATH)
- set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
+ if(DEFINED GCC_INSTALL_PREFIX)
+ set(CMAKE_INSTALL_RPATH "${GCC_INSTALL_PREFIX}/lib")
+ else()
+ set(CMAKE_INSTALL_RPATH &quo...
2014 May 30
3
[LLVMdev] [PATCH] Use GCC_INSTALL_PREFIX for rpath if set.
...keLists.txt | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/CMakeLists.txt b/CMakeLists.txt
>> index 9ec3e33..c85a028 100644
>> --- a/CMakeLists.txt
>> +++ b/CMakeLists.txt
>> @@ -450,7 +450,12 @@ if (APPLE)
>> set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
>> else(UNIX)
>> if(NOT DEFINED CMAKE_INSTALL_RPATH)
>> - set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
>> + if(DEFINED GCC_INSTALL_PREFIX)
>> + set(CMAKE_INSTALL_RPATH "${GCC_INSTALL_PREFIX}/lib")
&g...
2015 Dec 26
2
[CMake] Hardcoded rpath?
...n a dyld error. The issue can be found at https://github.com/Homebrew/homebrew/issues/47149
From what I can tell, this is a result of lines 561-564 of the CMakeLists.txt in the main LLVM repo:
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
if (APPLE)
set(CMAKE_INSTALL_NAME_DIR "@rpath")
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
Is there a reason these variables are hardcoded?
-Alex