You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
499 B
16 lines
499 B
5 years ago
|
include(${RunCMake_SOURCE_DIR}/TARGETS-FILE_RPATH_CHANGE-check-common.cmake)
|
||
|
skip_without_rpath_change_rule()
|
||
|
string(APPEND prefix "${wsnl}" [[FILE "[^"]*/]])
|
||
|
|
||
|
set(target "exe1")
|
||
|
string(CONCAT regex "${prefix}${target}\"${wsnl}"
|
||
|
[[OLD_RPATH "]] "${RunCMake_BINARY_DIR}")
|
||
|
check()
|
||
|
|
||
|
if("x${CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN}" STREQUAL "x\$ORIGIN")
|
||
|
set(target "exe2")
|
||
|
string(CONCAT regex "${prefix}${target}\"${wsnl}"
|
||
|
[[OLD_RPATH "\\\$ORIGIN]])
|
||
|
check()
|
||
|
endif()
|