diff options
Diffstat (limited to 'Tests/SimpleInstallS2/CMakeLists.txt')
-rw-r--r-- | Tests/SimpleInstallS2/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/SimpleInstallS2/CMakeLists.txt b/Tests/SimpleInstallS2/CMakeLists.txt index 76d3724..03efbec 100644 --- a/Tests/SimpleInstallS2/CMakeLists.txt +++ b/Tests/SimpleInstallS2/CMakeLists.txt @@ -54,6 +54,10 @@ IF(STAGE2) TARGET_LINK_LIBRARIES(SimpleInstallS2 ${TEST1_LIBRARY} ${TEST2_LIBRARY} ${TEST4_LIBRARY}) SET(install_target SimpleInstallS2) + # Make sure the test executable can run from the install tree. + SET_TARGET_PROPERTIES(SimpleInstallS2 PROPERTIES + INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) + INSTALL_TARGETS(/bin SimpleInstallS2) ELSE(STAGE2) # this is stage 1, so create libraries and modules and install everything |