diff options
author | Brad King <brad.king@kitware.com> | 2006-02-16 20:38:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-16 20:38:59 (GMT) |
commit | ad2cc1f3338fd5060082006f3a9b66434adbc042 (patch) | |
tree | 48277f096495e0518610b50c3d1bf8b1de1740da /Tests/SimpleInstallS2 | |
parent | 3b7011b9f626d68bb4f0b46205a1d04c08e2167d (diff) | |
download | CMake-ad2cc1f3338fd5060082006f3a9b66434adbc042.zip CMake-ad2cc1f3338fd5060082006f3a9b66434adbc042.tar.gz CMake-ad2cc1f3338fd5060082006f3a9b66434adbc042.tar.bz2 |
BUG: Need INSTALL_RPATH property on SimpleInstallS2 also.
Diffstat (limited to 'Tests/SimpleInstallS2')
-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 |