ContinueForEachInLists.cmake 233 B

12345678910
  1. list(APPEND foo 1 2 3 4 5)
  2. message(STATUS "start")
  3. foreach(iter IN LISTS foo)
  4. if("${iter}" EQUAL 1 OR "${iter}" EQUAL 3 OR "${iter}" EQUAL 5)
  5. continue()
  6. endif()
  7. message(STATUS "${iter}")
  8. endforeach()
  9. message(STATUS "end")