[cmake-developers] Exporting dependent library targets in multiple export sets

Alexander Neundorf neundorf at kde.org
Wed Sep 19 15:58:33 EDT 2012


On Tuesday 18 September 2012, Brad King wrote:
> On 09/18/2012 04:12 PM, Alexander Neundorf wrote:
> > How about defining a variable which can be set by Config-files which
> > holds an error message for the case that the Config-file has set
> > <package>_FOUND to FALSE ?
> > Like e.g. <package>_FIND_FAILURE_MESSAGE ?
> > This could then be printed by cmFindPackage and/or FPHSA ?
> 
> It sounds okay to me.

Hmm, I was almost done implementing it...
when creating the export file, we do not know how the Config file will be named, 
i.e. we do not know the name of the package, so we cannot set <package>_FOUND 
to FALSE...
Am I missing something ?

Alex



More information about the cmake-developers mailing list