[CMake] making a FooConfig.cmake with components

Clinton Stimpson clinton at elemtech.com
Fri Feb 27 19:11:45 EST 2009


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 know if there was an 
official way to do this.

Thanks,
Clint



More information about the CMake mailing list