https://github.com/Kitware/CMake
Raw File
Tip revision: f7cf69e34a1607e8ea2b6d10fef6a6058377c24e authored by Brad King on 27 July 2021, 13:29:13 UTC
CMake 3.21.1
Tip revision: f7cf69e
ContinueNestedForeach.cmake
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")
back to top