r261445 - [c-index-test] CMake: When installing c-index-test to a different prefix directory, add an rpath so that

Argyrios Kyrtzidis via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 20 12:34:55 PST 2016


Author: akirtzidis
Date: Sat Feb 20 14:34:55 2016
New Revision: 261445

URL: http://llvm.org/viewvc/llvm-project?rev=261445&view=rev
Log:
[c-index-test] CMake: When installing c-index-test to a different prefix directory, add an rpath so that
it can find libclang.

Modified:
    cfe/trunk/tools/c-index-test/CMakeLists.txt

Modified: cfe/trunk/tools/c-index-test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/CMakeLists.txt?rev=261445&r1=261444&r2=261445&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/CMakeLists.txt (original)
+++ cfe/trunk/tools/c-index-test/CMakeLists.txt Sat Feb 20 14:34:55 2016
@@ -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()




More information about the cfe-commits mailing list