CMake/Tests/RunCMake/continue/ContinueWhile.cmake
Daniel Pfeifer 7a649111cd Use string(APPEND) in Tests
Automate with:

find Tests -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
2016-07-28 00:43:04 +02:00

11 lines
217 B
CMake

message(STATUS "start")
unset(iter)
while(NOT "${iter}" STREQUAL "aaaaa")
string(APPEND iter "a")
if("${iter}" STREQUAL "aaa")
continue()
endif()
message(STATUS "${iter}")
endwhile()
message(STATUS "end")