Re: [CMake] making a FooConfig.cmake with components

2009-03-02 Thread Clinton Stimpson
Philip Lowman wrote: On Fri, Feb 27, 2009 at 7:11 PM, Clinton Stimpson mailto:clin...@elemtech.com>> wrote: I'm writing a FooConfig.cmake to support find_package(Foo COMPONENTS A B C) I see that Foo_FOUND is always TRUE no matter what I try to set to from FooConfig.cmake.

Re: [CMake] making a FooConfig.cmake with components

2009-02-28 Thread Philip Lowman
On Fri, Feb 27, 2009 at 7:11 PM, Clinton Stimpson wrote: > > I'm writing a FooConfig.cmake to support > > find_package(Foo COMPONENTS A B C) > > I see that Foo_FOUND is always TRUE no matter what I try to set to from > FooConfig.cmake. > How does a FooConfig.cmake tell the caller whether the compo

[CMake] making a FooConfig.cmake with components

2009-02-27 Thread Clinton Stimpson
I'm writing a FooConfig.cmake to support find_package(Foo COMPONENTS A B C) I see that Foo_FOUND is always TRUE no matter what I try to set to from FooConfig.cmake. How does a FooConfig.cmake tell the caller whether the components were all found? I can make my own variables, but I wanted to k