On Fri, Jun 6, 2014 at 8:28 AM, Brad King <brad.k...@kitware.com> wrote:

> On 06/06/2014 11:07 AM, Andrew Fuller wrote:
> > On Fri, Jun 6, 2014 at 6:08 AM, Brad King <brad.k...@kitware.com
> <mailto:brad.k...@kitware.com>> wrote:
> >
> >     I cannot reproduce these.  Can you provide a complete CMakeLists.txt
> >     example please?
> >
> > Attached
>
> Thanks.  I meant to quote the whole outermost $<> expression as one
> argument.  Also you are missing some closing '>' in the last block.
> For example:
>
> -        $<$<PLATFORM_ID:Windows>:${_windowsLibListL}>
> -        $<$<PLATFORM_ID:Linux>:$<JOIN:${_linuxLibListL}," -l">
> +        "$<$<PLATFORM_ID:Windows>:${_windowsLibListL}>"
> +        "$<$<PLATFORM_ID:Linux>:$<JOIN:${_linuxLibListL}, -l>>"
>
> -Brad
>
>
Oh my!  I wouldn't have thought of doing that.  Oops about the missed
closing '>'; with the closing > but not adjusting the quotes still gives
the syntax error.

But adding quotes around the entire thing ...  now that works!  (even for
test #2 where I'm not using $<JOIN...>.  That's an easy fix for my project.

Should I be quoting all my generator expressions?  Is that the proper
syntax?
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to