[CMake] Does FIND_PACKAGE ignore REQUIRED and QUIET in Config mode ?
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Sep 4 17:29:23 EDT 2008
On Saturday 30 August 2008, Yann Cointepas wrote:
> Hi,
>
> I would like to use XXX-config.cmake file (generated from a
> XXX-config.cmake.in) in the same way as if it was FindXXX.cmake (I want to
> use the search policy of Config mode). But no XXX_FIND_REQUIRED nor
> XXX_FIND_QUIET variables are defined when XXX-config.cmake is executed with
> find_package( XXX REQUIRED|QUIET ). Is there another way to get this
> information ?
Hmm, I don't understand.
You shouldn't need them in this case.
If you use FooConfig.cmake, it will be found automatically, if not, i.e. when
you would have to check whether it was required or not, you are not able to
check it, since the script which could check it wasn't found and can't do
anything.
What exactly do you want to do ?
Alex
More information about the CMake
mailing list