Re: [cmake-developers] find_package error wording

2012-02-19 Thread Alexander Neundorf
On Sunday 19 February 2012, Stephen Kelly wrote: > On Sunday, February 19, 2012 16:18:00 Alexander Neundorf wrote: > > On Sunday 19 February 2012, Stephen Kelly wrote: > > > > The only reason to distribute FindBlub for a CMake-aware project is > > > > to wrap up find_package NO_MODULE to produce a

Re: [cmake-developers] find_package error wording

2012-02-19 Thread Stephen Kelly
On Sunday, February 19, 2012 16:18:00 Alexander Neundorf wrote: > On Sunday 19 February 2012, Stephen Kelly wrote: > > > The only reason to distribute FindBlub for a CMake-aware project is > > > to wrap up find_package NO_MODULE to produce a nicer message, but > > > that > > > is totally optional.

Re: [cmake-developers] find_package error wording

2012-02-19 Thread Alexander Neundorf
On Sunday 19 February 2012, Stephen Kelly wrote: > Hi, > > I must have missed something here. > > On Friday, February 17, 2012 13:16:42 Brad King wrote: > > On 2/17/2012 12:09 PM, Alexander Neundorf wrote: > > > But another significant part of the reason is probably that beside > > > upstreaming

Re: [cmake-developers] find_package error wording

2012-02-19 Thread Stephen Kelly
Hi, I must have missed something here. On Friday, February 17, 2012 13:16:42 Brad King wrote: > On 2/17/2012 12:09 PM, Alexander Neundorf wrote: > > But another significant part of the reason is probably that beside > > upstreaming a module to cmake, there is no other "official" way to > > distr

Re: [cmake-developers] find_package error wording

2012-02-18 Thread Alexander Neundorf
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) thi

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
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 versi

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
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. -Bra

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 4:01 PM, Alexander Neundorf wrote: > > There is now a branch FindPackage_CONFIG_MODE_MODULE_MODE which has the > > two keywords, but doesn't change the behaviour yet. > > So there wasn't a lot to change in the documentation or tests. > > I

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 4:01 PM, Alexander Neundorf wrote: There is now a branch FindPackage_CONFIG_MODE_MODULE_MODE which has the two keywords, but doesn't change the behaviour yet. So there wasn't a lot to change in the documentation or tests. I'll do the modified behaviour together with the policy. Loo

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 2:16 PM, Alexander Neundorf wrote: > > On Friday 17 February 2012, Brad King wrote: > >> On 2/17/2012 2:01 PM, Alexander Neundorf wrote: > >>> Do you want me to add the new keywords ? > >>> NO_MODULE == CONFIG_MODE == !MODULE == !NO_CONFIG

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 2:16 PM, Alexander Neundorf wrote: On Friday 17 February 2012, Brad King wrote: On 2/17/2012 2:01 PM, Alexander Neundorf wrote: Do you want me to add the new keywords ? NO_MODULE == CONFIG_MODE == !MODULE == !NO_CONFIG_MODE Yes, but I don't think NO_CONFIG_MODE is necessary. NO_

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 2:01 PM, Alexander Neundorf wrote: > > Do you want me to add the new keywords ? > > NO_MODULE == CONFIG_MODE == !MODULE == !NO_CONFIG_MODE > > Yes, but I don't think NO_CONFIG_MODE is necessary. NO_MODULE > will become historical. Let's

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 2:01 PM, Alexander Neundorf wrote: Do you want me to add the new keywords ? NO_MODULE == CONFIG_MODE == !MODULE == !NO_CONFIG_MODE Yes, but I don't think NO_CONFIG_MODE is necessary. NO_MODULE will become historical. Let's make the new ones consistent with each other: CONFIG_M

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Alexander Neundorf wrote: ... > Ok :-) > > Should I do this by continuing in the FindPackage_ImprovedErrorMessages > branch or create a new branch, branched away from > FindPackage_ImprovedErrorMessages ? I create a new branch. Do you want me to add the new keywords ?

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 1:28 PM, Alexander Neundorf wrote: > >> We can adjust it slightly to avoid the policy warning when FooConfig > >> > >> is found and Foo_DIR is set: > >>- search for FindFoo.cmake, use if found > >>- if not found, check new policy

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 1:28 PM, Alexander Neundorf wrote: We can adjust it slightly to avoid the policy warning when FooConfig is found and Foo_DIR is set: - search for FindFoo.cmake, use if found - if not found, check new policy setting - if not set, enter config mode and emit both the policy wa

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 12:09 PM, Alexander Neundorf wrote: > > But another significant part of the reason is probably that beside > > upstreaming a module to cmake, there is no other "official" way to > > distribute Find- modules. So if somebody wrote a libblub,

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 12:09 PM, Alexander Neundorf wrote: But another significant part of the reason is probably that beside upstreaming a module to cmake, there is no other "official" way to distribute Find- modules. So if somebody wrote a libblub, it is a relatively obvious choice to install FindBlub.cm

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Alexander Neundorf wrote: ... > But another significant part of the reason is probably that beside > upstreaming a module to cmake, there is no other "official" way to > distribute Find- modules. So if somebody wrote a libblub, it is a > relatively obvious choice to inst

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 11:37 AM, Alexander Neundorf wrote: > >>> developers use Find modules. Consider: > >>>CMake Error at CMakeLists.txt:7 (find_package): > >>> No package configuration file for "ecm" found by names: > >>>ecmConfig.cmake > >>

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 11:37 AM, Alexander Neundorf wrote: developers use Find modules. Consider: CMake Error at CMakeLists.txt:7 (find_package): No package configuration file for "ecm" found by names: ecmConfig.cmake ecm-config.cmake Add the installation prefix of "ecm" to CMA

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Alexander Neundorf wrote: > On Friday 17 February 2012, Brad King wrote: ... > > Perhaps we can make the distinction between user and developer right > > in the message. When there is no Find module the proper message that > > a user sees should talk about ecm_DIR and C

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Alexander Neundorf
On Friday 17 February 2012, Brad King wrote: > On 2/17/2012 4:29 AM, Alexander Neundorf wrote: > > I collected the various error messages which can be produced in the > > different cases: > > * package not found > > * package found, but version doesn't match > > > > * REQUIRED > > * without

Re: [cmake-developers] find_package error wording

2012-02-17 Thread Brad King
On 2/17/2012 4:29 AM, Alexander Neundorf wrote: > I collected the various error messages which can be produced in the different > cases: > * package not found > * package found, but version doesn't match > > * REQUIRED > * without REQUIRED > > * find_package() with no Find-module present > * find_