Debian Codegraph @

Tests/RunCMake/string/Join.cmake

raw
1 string(JOIN % out)
2 if(NOT out STREQUAL "")
3 message(FATAL_ERROR "\"string(JOIN % out)\" set out to \"${out}\"")
4 endif()
5 string(JOIN % out a)
6 if(NOT out STREQUAL "a")
7 message(FATAL_ERROR "\"string(JOIN % out a)\" set out to \"${out}\"")
8 endif()
9 string(JOIN % out a "b")
10 if(NOT out STREQUAL "a%b")
11 message(FATAL_ERROR "\"string(JOIN % out a \"b\")\" set out to \"${out}\"")
12 endif()
13 string(JOIN :: out a "b")
14 if(NOT out STREQUAL "a::b")
15 message(FATAL_ERROR "\"string(JOIN :: out a \"b\")\" set out to \"${out}\"")
16 endif()