[cmake-developers] find_package module-only policy (was: find_package error wording)

Alexander Neundorf neundorf at kde.org
Tue Feb 21 15:23:34 EST 2012


On Monday 20 February 2012, Alexander Neundorf wrote:
> On Monday 20 February 2012, Brad King wrote:
...
> > (2) Add the explicit MODULE and CONFIG mode keywords.  Warn if they
> > are used and the current minimum CMake version is not >= 2.8.8 so that
> > people do not add them in places that will break old versions.
> > 
> > (3) Add two possible AUTHOR_WARNING messages in the case that no mode
> > 
> > keyword or Find module is present:
> >   - If the current minimum CMake required version is >= 2.8.8 then
> >   
> >     warn that MODULE or CONFIG should be used.
> >   
> >   - Otherwise if CMAKE_FIND_PACKAGE_WARN_NO_MODULE is set to true then
> >   
> >     warn that NO_MODULE should be used to get the config mode.
> 
> There is now a branch FindPackage_ModeWarning on stage.

I should have probably pushed all my commits to this branch...
Done now.

Working on your suggestions.

Alex



More information about the cmake-developers mailing list