mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Correctly set rpath for unittests.
This lets us run the unittest from the command line without setting LD_LIBRARY_PATH. llvm-svn: 202509
This commit is contained in:
parent
c2c451402e
commit
ee6be2e1d1
@ -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…
x
Reference in New Issue
Block a user