1include(${RunCMake_SOURCE_DIR}/TARGETS-FILE_RPATH_CHANGE-check-common.cmake)
2skip_without_rpath_change_rule()
3string(APPEND prefix "${wsnl}" [[FILE "[^"]*/]])
4
5set(target "exe1_cmp0095_old")
6string(CONCAT regex "${prefix}${target}\"${wssl}"
7              [[NEW_RPATH "/foo/bar]])
8check()
9
10set(target "exe1_cmp0095_warn")
11string(CONCAT regex "${prefix}${target}\"${wssl}"
12              [[NEW_RPATH "/foo/bar]])
13check()
14
15set(target "exe1_cmp0095_new")
16string(CONCAT regex "${prefix}${target}\"${wssl}"
17              [[NEW_RPATH "/foo/bar]])
18check()
19
20set(target "exe2_cmp0095_old")
21string(CONCAT regex "${prefix}${target}\"${wssl}"
22              [[NEW_RPATH "\$ORIGIN/../lib]])
23check()
24
25set(target "exe2_cmp0095_warn")
26string(CONCAT regex "${prefix}${target}\"${wssl}"
27              [[NEW_RPATH "\$ORIGIN/../lib]])
28check()
29
30set(target "exe2_cmp0095_new")
31string(CONCAT regex "${prefix}${target}\"${wssl}"
32              [[NEW_RPATH "\\\$ORIGIN/../lib]])
33check()
34
35set(target "exe3_cmp0095_old")
36string(CONCAT regex "${prefix}${target}\"${wssl}"
37              [[NEW_RPATH "\${ORIGIN}/../lib]])
38check()
39
40set(target "exe3_cmp0095_warn")
41string(CONCAT regex "${prefix}${target}\"${wssl}"
42              [[NEW_RPATH "\${ORIGIN}/../lib]])
43check()
44
45set(target "exe3_cmp0095_new")
46string(CONCAT regex "${prefix}${target}\"${wssl}"
47              [[NEW_RPATH "\\\${ORIGIN}/../lib]])
48check()
49
50set(target "exe4_cmp0095_old")
51string(CONCAT regex "${prefix}${target}\"${wssl}"
52              [[NEW_RPATH "/foo/bar/\${PLATFORM}]])
53check()
54
55set(target "exe4_cmp0095_warn")
56string(CONCAT regex "${prefix}${target}\"${wssl}"
57              [[NEW_RPATH "/foo/bar/\${PLATFORM}]])
58check()
59
60set(target "exe4_cmp0095_new")
61string(CONCAT regex "${prefix}${target}\"${wssl}"
62              [[NEW_RPATH "/foo/bar/\\\${PLATFORM}]])
63check()
64