https://github.com/Kitware/CMake
Raw File
Tip revision: 3e5548784da085ee3a5ce3f7213c0cf281b68f31 authored by Brad King on 03 October 2018, 12:20:44 UTC
CMake 3.12.3
Tip revision: 3e55487
ContinueForEachInLists.cmake
list(APPEND foo 1 2 3 4 5)

message(STATUS "start")
foreach(iter IN LISTS foo)
  if("${iter}" EQUAL 1 OR "${iter}" EQUAL 3 OR "${iter}" EQUAL 5)
    continue()
  endif()
  message(STATUS "${iter}")
endforeach()
message(STATUS "end")
back to top