зеркало из https://github.com/microsoft/clang.git
[c-index-test] CMake: When installing c-index-test to a different prefix directory, add an rpath so that
it can find libclang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@261445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
d9d154cc11
Коммит
c34c0ec7b6
|
@ -42,6 +42,8 @@ endif()
|
|||
if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
||||
if(INTERNAL_INSTALL_PREFIX)
|
||||
set(INSTALL_DESTINATION "${INTERNAL_INSTALL_PREFIX}/bin")
|
||||
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
||||
"@executable_path/../../lib")
|
||||
else()
|
||||
set(INSTALL_DESTINATION bin)
|
||||
endif()
|
||||
|
|
Загрузка…
Ссылка в новой задаче