You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/continue/ContinueNestedForeach.cmake

14 lines
316 B

message(STATUS "start")
foreach(outer RANGE 7 9)
if("${outer}" EQUAL 8)
continue()
endif()
foreach(inner RANGE 1 5)
if("${inner}" EQUAL 1 OR "${inner}" EQUAL 3 OR "${inner}" EQUAL 5)
continue()
endif()
message(STATUS "${outer} ${inner}")
endforeach()
endforeach()
message(STATUS "end")