blob: 2e377c80286b4a6644ff6f4a3cc1fc861ae73b3a [file] [log] [blame]
message(STATUS "foreach(RANGE):")
list(APPEND CMAKE_MESSAGE_INDENT " ")
message(STATUS "[0..1]/1")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i RANGE 1)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "[1..1]/1")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i RANGE 1 1)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "[0..10]/2")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i RANGE 0 10 2)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "[-10..0]/3")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i RANGE -10 0 3)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "[0..-10]/-5")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i RANGE 0 -10 -5)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "foreach(IN ITEMS):")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i IN ITEMS one two three)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "foreach(IN LISTS):")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
list(APPEND count satu dua tiga)
foreach(i IN LISTS count)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "foreach(IN LISTS and ITEMS):")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i IN LISTS count ITEMS one two three)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)
message(STATUS "foreach(IN ITEMS and LISTS):")
list(APPEND CMAKE_MESSAGE_INDENT " < ")
foreach(i IN ITEMS one two three LISTS count)
message(STATUS ${i})
endforeach()
list(POP_BACK CMAKE_MESSAGE_INDENT)