ENH: Use target property for INSTALL_RPATH of SimpleInstall so that it is the only one that needs to relink.
This commit is contained in:
parent
b07ece004c
commit
c70da1aae6
|
@ -8,9 +8,6 @@ SET(LIBRARY_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}")
|
|||
# avoids infinite loops when the post-build rule below installs.
|
||||
SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY 1)
|
||||
|
||||
# Make sure the test executable can run from the install tree.
|
||||
SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
|
||||
SET(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
||||
|
||||
SET(EXTRA_INSTALL_FLAGS)
|
||||
|
@ -69,6 +66,10 @@ ELSE(STAGE2)
|
|||
TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4)
|
||||
SET(install_target SimpleInstall)
|
||||
|
||||
# Make sure the test executable can run from the install tree.
|
||||
SET_TARGET_PROPERTIES(SimpleInstall PROPERTIES
|
||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
|
||||
IF(CMAKE_GENERATOR MATCHES "Makefiles")
|
||||
ADD_SUBDIRECTORY(TestSubDir)
|
||||
ADD_DEPENDENCIES(SimpleInstall TSD)
|
||||
|
|
|
@ -8,9 +8,6 @@ SET(LIBRARY_OUTPUT_PATH "${EXECUTABLE_OUTPUT_PATH}")
|
|||
# avoids infinite loops when the post-build rule below installs.
|
||||
SET(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY 1)
|
||||
|
||||
# Make sure the test executable can run from the install tree.
|
||||
SET(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
|
||||
SET(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
||||
|
||||
SET(EXTRA_INSTALL_FLAGS)
|
||||
|
@ -69,6 +66,10 @@ ELSE(STAGE2)
|
|||
TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4)
|
||||
SET(install_target SimpleInstall)
|
||||
|
||||
# Make sure the test executable can run from the install tree.
|
||||
SET_TARGET_PROPERTIES(SimpleInstall PROPERTIES
|
||||
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
|
||||
IF(CMAKE_GENERATOR MATCHES "Makefiles")
|
||||
ADD_SUBDIRECTORY(TestSubDir)
|
||||
ADD_DEPENDENCIES(SimpleInstall TSD)
|
||||
|
|
Loading…
Reference in New Issue