summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/install/TARGETS-FILE_RPATH_CHANGE-new_rpath-check.cmake
blob: 930ef7044fc685d5c3f1a792b8f499214cdae24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
include(${RunCMake_SOURCE_DIR}/TARGETS-FILE_RPATH_CHANGE-check-common.cmake)
skip_without_rpath_change_rule()
string(APPEND prefix "${wsnl}" [[FILE "[^"]*/]])

set(target "exe1_cmp0095_old")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar]])
check()

set(target "exe1_cmp0095_warn")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar]])
check()

set(target "exe1_cmp0095_new")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar]])
check()

set(target "exe2_cmp0095_old")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\$ORIGIN/../lib]])
check()

set(target "exe2_cmp0095_warn")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\$ORIGIN/../lib]])
check()

set(target "exe2_cmp0095_new")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\\\$ORIGIN/../lib]])
check()

set(target "exe3_cmp0095_old")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\${ORIGIN}/../lib]])
check()

set(target "exe3_cmp0095_warn")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\${ORIGIN}/../lib]])
check()

set(target "exe3_cmp0095_new")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "\\\${ORIGIN}/../lib]])
check()

set(target "exe4_cmp0095_old")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar/\${PLATFORM}]])
check()

set(target "exe4_cmp0095_warn")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar/\${PLATFORM}]])
check()

set(target "exe4_cmp0095_new")
string(CONCAT regex "${prefix}${target}\"${wssl}"
              [[NEW_RPATH "/foo/bar/\\\${PLATFORM}]])
check()