[cmake-developers] Generating guards around add_library(... IMPORTED)
David Cole
david.cole at kitware.com
Thu Nov 29 14:22:27 EST 2012
But with the multiple "OR" technique, if there is a single target name
clash, NONE of the targets will be included properly, and quite likely,
very mysteriously...
I don't know about the rest of you, but I hate mysterious (and silent)
errors.
On Thu, Nov 29, 2012 at 2:18 PM, Brad King <brad.king at kitware.com> wrote:
> On 11/29/2012 02:12 PM, Stephen Kelly wrote:
> > Rather than reindenting everything, can I do this instead?
> >
> > if(TARGET a OR TARGET b OR ...)
> > return()
> > endif()
>
> Yes. That will be much cleaner too. Please also generate a
> comment that explains the motivation.
>
> Thanks,
> -Brad
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20121129/902dc2f4/attachment.html>
More information about the cmake-developers
mailing list