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

Brad King brad.king at kitware.com
Thu Nov 29 13:32:28 EST 2012


On 11/29/2012 12:29 PM, Stephen Kelly wrote:
> Really I think the most practical solution is to generate 'if (NOT TARGET)' 

Defining the targets is not the only thing that a targets file does.
It also sets all the properties.  How will you guard those?  They
do not always appear next to the targets.  We need a single file-wide
guard.

-Brad



More information about the cmake-developers mailing list