BUG: Need INSTALL_RPATH property on SimpleInstallS2 also.

This commit is contained in:
Brad King 2006-02-16 15:38:59 -05:00
parent 3b7011b9f6
commit ad2cc1f333
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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