Re: [CMake] Question about looping inside a macro.

2019-06-04 Thread Bruce Stephens
This works: macro(bsPrintList) foreach(l ${ARGN}) message(STATUS "List entry: ${l}") endforeach() endmacro() bsPrintList(foo bar baz) On Tue, 4 Jun 2019 at 22:14, Steven Truppe wrote: > > Hi everyone, like you know i'm relative new the cmake and i'm working my way > through the book and

[CMake] Question about looping inside a macro.

2019-06-04 Thread Steven Truppe
Hi everyone, like you know i'm relative new the cmake and i'm working my way through the book and the documentation but there is something that i don't understand in the docs. I just want to write a macro that uses as first argument a list and then iterates over it. The docs show the example: m