mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 06:20:23 +00:00
e5ca59b456
Move failure cases from the CMake.{If,List,While,GetProperty} tests over to the RunCMake.{if,list,while,get_property} tests to use the more modern infrastructure. This also avoids using REGEX_ESCAPE_STRING to try to regex-match full paths.
18 lines
391 B
CMake
18 lines
391 B
CMake
set(NUMBERS "")
|
|
set(COUNT 0)
|
|
|
|
while(COUNT LESS 200)
|
|
set(NUMBERS "${NUMBERS} ${COUNT}")
|
|
set(COUNT "2${COUNT}")
|
|
|
|
set(NCOUNT 3)
|
|
while(NCOUNT LESS 31)
|
|
set(NUMBERS "${NUMBERS} ${NCOUNT}")
|
|
set(NCOUNT "${NCOUNT}0")
|
|
endwhile()
|
|
endwhile()
|
|
|
|
if(NOT NUMBERS STREQUAL " 0 3 30 20 3 30")
|
|
message(SEND_ERROR "while loop nesting error, result: '${NUMBERS}'")
|
|
endif()
|