[lld] r281256 - [Cmake] Use Cmake's default RPATH for unittest.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 13:44:54 PDT 2016


Author: davide
Date: Mon Sep 12 15:44:53 2016
New Revision: 281256

URL: http://llvm.org/viewvc/llvm-project?rev=281256&view=rev
Log:
[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)

Modified:
    lld/trunk/unittests/CMakeLists.txt

Modified: lld/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/CMakeLists.txt?rev=281256&r1=281255&r2=281256&view=diff
==============================================================================
--- lld/trunk/unittests/CMakeLists.txt (original)
+++ lld/trunk/unittests/CMakeLists.txt Mon Sep 12 15:44:53 2016
@@ -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




More information about the llvm-commits mailing list