From 3582242aa38a2d4529009f47a568de35ebed1db4 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 12 Sep 2016 20:44:53 +0000 Subject: [PATCH] [Cmake] Use Cmake's default RPATH for unittest. Similarly to what was done in r280791 for llvm/. This should fix a bunch of failures I saw while trying a BUILD_SHARED_LIBS build on MacOS. Still there are some failures, but this is a step forward. Thanks a lot to Chris Bieneman for the suggested fix (in PR30345) llvm-svn: 281256 --- lld/unittests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/unittests/CMakeLists.txt b/lld/unittests/CMakeLists.txt index bb651b5..9cd0853 100644 --- a/lld/unittests/CMakeLists.txt +++ b/lld/unittests/CMakeLists.txt @@ -1,6 +1,8 @@ add_custom_target(LLDUnitTests) set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests") +set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF) + # add_lld_unittest(test_dirname file1.cpp file2.cpp) # # Will compile the list of files together and link against lld -- 2.7.4