ContinueNestedForeach.cmake 316 B

12345678910111213
  1. message(STATUS "start")
  2. foreach(outer RANGE 7 9)
  3. if("${outer}" EQUAL 8)
  4. continue()
  5. endif()
  6. foreach(inner RANGE 1 5)
  7. if("${inner}" EQUAL 1 OR "${inner}" EQUAL 3 OR "${inner}" EQUAL 5)
  8. continue()
  9. endif()
  10. message(STATUS "${outer} ${inner}")
  11. endforeach()
  12. endforeach()
  13. message(STATUS "end")