mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
Correctly set rpath for unittests.
This lets us run the unittest from the command line without setting LD_LIBRARY_PATH. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
37c04a0d4d
commit
128237d0c7
@ -1,6 +1,12 @@
|
||||
add_custom_target(UnitTests)
|
||||
set_target_properties(UnitTests PROPERTIES FOLDER "Tests")
|
||||
|
||||
if (APPLE)
|
||||
set(CMAKE_INSTALL_RPATH "@executable_path/../../lib")
|
||||
else(UNIX)
|
||||
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../../lib")
|
||||
endif()
|
||||
|
||||
function(add_llvm_unittest test_dirname)
|
||||
add_unittest(UnitTests ${test_dirname} ${ARGN})
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user