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

Alexander Neundorf neundorf at kde.org
Wed Sep 19 16:14:08 EDT 2012


On Wednesday 19 September 2012, Alexander Neundorf wrote:
> 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 ?

cmFindPackage could set a CMAKE_FIND_PACKAGE_NAME variable, which I could use 
then...

Alex



More information about the cmake-developers mailing list