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

Brad King brad.king at kitware.com
Thu Nov 29 14:34:40 EST 2012


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()

-Brad



More information about the cmake-developers mailing list