[CMake] Does FIND_PACKAGE ignore REQUIRED and QUIET in Config mode ?
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Sep 5 15:51:56 EDT 2008
On Friday 05 September 2008, Yann Cointepas wrote:
> 1) Why do I need Foo_FIND_QUIET in FooConfig.cmake ?
> First, I would like to display a message with the Foo version found if
> QUIET is not used.
>
> 2) Why do I need Foo_FIND_REQUIRED in FooConfig.cmake ?
> FooConfig.cmake will be packaged and installed on various systems (in a
> Foo-devel package). Therefore, even if FooConfig.cmake is found, I need to
> check that its mandatory dependencies are found too before setting
> Foo_FOUND. For instance, I have a mandatory dependency on Boost and I would
> like to have the following code in FooConfig.cmake:
Ok, this makes sense.
Hint: it's "foo_FIND_QUIETLY", not "foo_FIND_QUIET".
Brad, any objections to set these two variables always, also in Config mode ?
If not I can do that if you're not faster.
Alex
More information about the CMake
mailing list