WhileTest.cmake.in 392 B

1234567891011121314151617
  1. set(NUMBERS "")
  2. set(COUNT 0)
  3. while(COUNT LESS 200)
  4. string(APPEND NUMBERS " ${COUNT}")
  5. set(COUNT "2${COUNT}")
  6. set(NCOUNT 3)
  7. while(NCOUNT LESS 31)
  8. string(APPEND NUMBERS " ${NCOUNT}")
  9. string(APPEND NCOUNT "0")
  10. endwhile()
  11. endwhile()
  12. if(NOT NUMBERS STREQUAL " 0 3 30 20 3 30")
  13. message(SEND_ERROR "while loop nesting error, result: '${NUMBERS}'")
  14. endif()