[cmake-developers] Generating guards around add_library(... IMPORTED)
Stephen Kelly
steveire at gmail.com
Fri Nov 30 03:55:55 EST 2012
Brad King wrote:
> On 11/29/2012 02:22 PM, David Cole wrote:
>> But with the multiple "OR" technique, if there is a single target name
>> clash, NONE of the targets will be included properly
>
> Good catch. I read it as "AND", which it should be:
>
> if(TARGET a AND TARGET b AND ...)
> return()
> endif()
>
I've pushed an implementation of 'all or none or warning' to next as the
branch safe-target-file-import.
Thanks,
Steve.
More information about the cmake-developers
mailing list