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

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to