From 223838aea2aef2d08dc76bb19f76899342bb7086 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Sat, 20 Feb 2016 20:34:55 +0000 Subject: [PATCH] [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 --- clang/tools/c-index-test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.7.4