[CMake] Question about a simple macro.

Steven Truppe workbench at gmx.at
Sun Jun 9 01:20:11 EDT 2019


Do i need cmake_parse_arguments ??

On 09.06.19 07:01, Steven Truppe wrote:
> Hi everyone,
>
> i'm a c,c++,asm and a few other languages, but i still have troubles
> with macros and their arguments.
>
> As a simple example i would like to have a macro that list(APPEND the
> two passed arguments), here the code i tried:
>
> https://wandbox.org/permlink/WQZGty9PQaOz3422.
>
>
> Let's forget about the list(APPEND) line, i just need an example that
> prints me out the first and the second argument and i'm not able to get
> it right. Would someone please explain to me how i can do this right ?
> I've read the book but that didn't helped me completely.
>
> I hope someone here is so nice to me to explain to me how i can write
> the bsMergeFlags macro and explains me what i'm doing wrong and how to
> correct it.
>
> I played around alot but can't get it right.
>
>
> best regards!
>
>


More information about the CMake mailing list