Debian Codegraph @

Tests/RunCMake/string/Append.cmake

raw
1 set(out)
2 string(APPEND out)
3 if(DEFINED out)
4 message(FATAL_ERROR "\"string(APPEND out)\" set out to \"${out}\"")
5 endif()
6
7 set(out "")
8 string(APPEND out)
9 if(NOT out STREQUAL "")
10 message(FATAL_ERROR "\"string(APPEND out)\" set out to \"${out}\"")
11 endif()
12
13 set(out x)
14 string(APPEND out)
15 if(NOT out STREQUAL "x")
16 message(FATAL_ERROR "\"string(APPEND out)\" set out to \"${out}\"")
17 endif()
18
19
20 set(out)
21 string(APPEND out a)
22 if(NOT out STREQUAL "a")
23 message(FATAL_ERROR "\"string(APPEND out a)\" set out to \"${out}\"")
24 endif()
25
26 set(out "")
27 string(APPEND out a)
28 if(NOT out STREQUAL "a")
29 message(FATAL_ERROR "\"string(APPEND out a)\" set out to \"${out}\"")
30 endif()
31
32 set(out x)
33 string(APPEND out a)
34 if(NOT out STREQUAL "xa")
35 message(FATAL_ERROR "\"string(APPEND out a)\" set out to \"${out}\"")
36 endif()
37
38
39 set(out x)
40 string(APPEND out a "b")
41 if(NOT out STREQUAL "xab")
42 message(FATAL_ERROR "\"string(APPEND out a \"b\")\" set out to \"${out}\"")
43 endif()
44
45 set(b)
46 set(out x)
47 string(APPEND out ${b})
48 if(NOT out STREQUAL "x")
49 message(FATAL_ERROR "\"string(APPEND out \${b})\" set out to \"${out}\"")
50 endif()
51
52 set(b b)
53 set(out x)
54 string(APPEND out a "${b}" [[
55 ${c}]])
56 if(NOT out STREQUAL "xab\${c}")
57 message(FATAL_ERROR "\"string(APPEND out a \"\${b}\" [[\${c}]])\" set out to \"${out}\"")
58 endif()