mirror of
https://github.com/reactos/CMake.git
synced 2025-01-24 04:34:26 +00:00
7a649111cd
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'
18 lines
392 B
CMake
18 lines
392 B
CMake
set(NUMBERS "")
|
|
set(COUNT 0)
|
|
|
|
while(COUNT LESS 200)
|
|
string(APPEND NUMBERS " ${COUNT}")
|
|
set(COUNT "2${COUNT}")
|
|
|
|
set(NCOUNT 3)
|
|
while(NCOUNT LESS 31)
|
|
string(APPEND NUMBERS " ${NCOUNT}")
|
|
string(APPEND NCOUNT "0")
|
|
endwhile()
|
|
endwhile()
|
|
|
|
if(NOT NUMBERS STREQUAL " 0 3 30 20 3 30")
|
|
message(SEND_ERROR "while loop nesting error, result: '${NUMBERS}'")
|
|
endif()
|