Re: [cmake-developers] Package Config files with COMPONENTS

2012-03-15 Thread Michael Hertling
On 03/13/2012 09:55 PM, Brad King wrote: > On Tue, Mar 13, 2012 at 4:43 PM, Alexander Neundorf wrote: >> We could also not set _FIND_REQUIRED_, or set it to "0" >> (which >> would mean it is not required). > > Even better. One can loop over the_FIND_COMPONENTS list and then test > the variable

Re: [cmake-developers] Package Config files with COMPONENTS

2012-03-15 Thread Michael Hertling
On 03/13/2012 06:30 PM, Brad King wrote: > On 3/13/2012 1:12 PM, Alexander Neundorf wrote: >> Setting CMP0018 to new would mean that the project supports only those >> component-aware packages which follow that new convention. > > Yes, that cannot be a requirement to use > >cmake_minimum_requ

Re: [cmake-developers] How to handle package Config.cmake files with dependencies ?

2012-03-14 Thread Michael Hertling
On 03/10/2012 02:10 PM, Alexander Neundorf wrote: > Hi, > > ...some comments inline, but the main point comes at the end. > > On Wednesday 07 March 2012, Michael Hertling wrote: >> On 02/27/2012 09:15 PM, Alexander Neundorf wrote: >>> Hi, >>> >>>

Re: [cmake-developers] How to handle package Config.cmake files with dependencies ?

2012-03-07 Thread Michael Hertling
On 02/27/2012 09:15 PM, Alexander Neundorf wrote: > Hi, > > I think find_package in Config mode might still need some more work. > > When the FooConfig.cmake has been found, Foo_FOUND is set to TRUE: > > // Set a variable marking whether the package was found. > std::string foundVar = this->N

Re: [cmake-developers] How to handle package Config.cmake files with dependencies ?

2012-03-07 Thread Michael Hertling
On 02/27/2012 10:05 PM, Brad King wrote: > On 2/27/2012 3:37 PM, Michael Wild wrote: >> On 02/27/2012 09:15 PM, Alexander Neundorf wrote: >>> When the FooConfig.cmake has been found, Foo_FOUND is set to TRUE: >>> >>> // Set a variable marking whether the package was found. >>>std::string foun