[cmake-developers] find_package error wording

Alexander Neundorf neundorf at kde.org
Sat Feb 18 10:43:03 EST 2012


On Friday 17 February 2012, Alexander Neundorf wrote:
> On Friday 17 February 2012, Brad King wrote:
> > On 2/17/2012 5:05 PM, Alexander Neundorf wrote:
> > > I think the nicer MODULE_MODE and CONFIG_MODE keywords are not worth
> > > breaking backward compatibility of users projects (not cmake) this way.
> > 
> > We can add them and document them in the new version but not mention
> > them in error messages for now.
> 
> This is what I have so far:
> ---------------------------------------------------------------------------
> policy NEW, Find-module not found:


This is now in the branch FindPackage_MODULE_MODE_Policy on stage.
I still have to add tests.

I wrote documentation for the new CMP0018.
For find_package(), I think the whole first part of the documentation has to 
be modified. Currently it says:
"User code should generally look for packages using the above simple 
signature. The remainder of this command documentation specifies the full 
command signature and details of the search process. Project maintainers 
wishing to provide a package to be found by this command are encouraged to 
read on."

I think with this new policy MODULE_MODE should not be considered the "simple 
signature" and NO_MODULE the "full signature" anymore, but both with equal 
rights.

Alex



More information about the cmake-developers mailing list