[CMake] Spaces in conditional output of generator expressions

Neil Carlson neil.n.carlson at gmail.com
Sat Jun 2 22:34:20 EDT 2018


On Sat, Jun 2, 2018 at 4:53 PM Stephen McDowell <sjm324 at cornell.edu> wrote:

> It should be a CMake list, which is delineated by semicolons.
>
> add_compile_options($<$<COMPILE_LANGUAGE:C>-Wall;-Wextra>)
>
> I am writing this from a phone so untested, but that has worked for me in
> the past.
>

Right about the list, and is one of the things I tried, but didn't work.
This one
seems to break the generator expression.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20180602/0c0dad37/attachment.html>


More information about the CMake mailing list