[CMake] How is ARGN passed to a macro
Torsten Robitzki
Torsten at Robitzki.de
Wed Nov 21 15:07:05 EST 2018
Hi Andreas,
> Am 21.11.2018 um 20:18 schrieb Andreas Naumann <Andreas-Naumann at gmx.net>:
>
> I think the behavior is explained in [1] and [2]. In particular the second section of [2] states that the parameter " [...] such as ARGN are not variables in the usual CMake sense. They are string replacements [...]". And the example at the end of [2] seems to match your test perfectly.
yes, but what puzzles me, is that I can’t print ${ARGN} in the macro (but in the function) but I can loop over it. That seems to be somehow strange to me.
Anyhow, thanks a lot and as long as this behavior is defined and (most likely) stays this way, I can work with it :-)
regards,
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://cmake.org/pipermail/cmake/attachments/20181121/6c81df45/attachment.sig>
More information about the CMake
mailing list