diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-20 20:34:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-02-20 20:34:55 +0000 |
commit | 223838aea2aef2d08dc76bb19f76899342bb7086 (patch) | |
tree | 3ea0643d9a9d652e4919ac6a524fdddd8fe37a57 | |
parent | d765c0b8b96a6f4a12071697737679e2b6c22550 (diff) | |
download | llvm-223838aea2aef2d08dc76bb19f76899342bb7086.zip llvm-223838aea2aef2d08dc76bb19f76899342bb7086.tar.gz llvm-223838aea2aef2d08dc76bb19f76899342bb7086.tar.bz2 |
[c-index-test] CMake: When installing c-index-test to a different prefix directory, add an rpath so that
it can find libclang.
llvm-svn: 261445
-rw-r--r-- | clang/tools/c-index-test/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt index 3958e95..e0df503 100644 --- a/clang/tools/c-index-test/CMakeLists.txt +++ b/clang/tools/c-index-test/CMakeLists.txt @@ -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() |