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

Brad King brad.king at kitware.com
Thu Nov 29 13:52:00 EST 2012


On 11/29/2012 01:44 PM, Stephen Kelly wrote:
> 1) and 2) imply for me that we can wrap the entire snippet I pasted above in 
> if (NOT TARGET grantlee_core).

Okay with me.  You could also do

 if(NOT TARGET a AND NOT TARGET b AND ...)

for all of the targets.  Then there would be almost no chance confusion
from accidental collision of one target name.

-Brad



More information about the cmake-developers mailing list