[cmake-developers] Generating guards around add_library(... IMPORTED)

Brad King brad.king at kitware.com
Thu Nov 29 14:18:54 EST 2012


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



More information about the cmake-developers mailing list