summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/continue/ContinueNestedForeach.cmake
blob: de7c51b20730619a81f247504cf6fbe7baffeb1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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")