[cmake-developers] find_package module-only policy

Alexander Neundorf neundorf at kde.org
Tue Feb 21 17:09:46 EST 2012


On Tuesday 21 February 2012, Brad King wrote:
> On 2/20/2012 5:43 PM, Brad King wrote:
> > The new find_package option will be called "CONFIG", please.
> 
> Another possibility is to require the mode keywords to come as the first
> argument, before the package name, just like many other commands:
> 
>    find_package(CONFIG Foo)
> 
> That will clearly distinguish it from other options that affect the
> settings within Config mode.


Ok, new day, new branch ;-)

This is now in the FindPackage_CONFIG_MODULEKeywordsFirst branch on stage, 
branched away from FindPackage_ImprovedErrorMessages.

I haven't adjusted the default mode error message yet.
The other error messages are quite close to what you show below.

Also the new AUTHOR_WARNING text is not really very good yet.
Documentation and test is also still missing.

There is the potential issue with "CONFIG" and "MODULE" being in use as module 
names already somewhere.

Alex



More information about the cmake-developers mailing list