Debian Codegraph @

Tests/RunCMake/string/Concat.cmake

raw
1 set(b b)
2 set(out x)
3 string(CONCAT out)
4 if(NOT out STREQUAL "")
5 message(FATAL_ERROR "\"string(CONCAT out)\" set out to \"${out}\"")
6 endif()
7 string(CONCAT out a)
8 if(NOT out STREQUAL "a")
9 message(FATAL_ERROR "\"string(CONCAT out a)\" set out to \"${out}\"")
10 endif()
11 string(CONCAT out a "b")
12 if(NOT out STREQUAL "ab")
13 message(FATAL_ERROR "\"string(CONCAT out a \"b\")\" set out to \"${out}\"")
14 endif()
15 string(CONCAT out a "${b}" [[
16 ${c}]])
17 if(NOT out STREQUAL "ab\${c}")
18 message(FATAL_ERROR "\"string(CONCAT out a \"\${b}\" [[\${c}]])\" set out to \"${out}\"")
19 endif()