[cmake-developers] [PATCH] FindPackageHandleStandardArgs: fix documentation

Brad King brad.king at kitware.com
Fri Jan 20 08:46:54 EST 2012


On 1/19/2012 2:41 PM, Yury G. Kudryashov wrote:
> State explicitly what CONFIG_MODE argument does.
[snip]
> -# a find_package(... NO_MODULE) call, in this case all the information
> -# provided by the config-mode of find_package() will be evaluated
> -# automatically.
> +# a find_package(... NO_MODULE) call, in this VERSION_VAR will be set to
> +# NAME_VERSION and the macro will automatically check whether the Config module
> +# was found.

I do not think that explanation is correct.  The find_package command
in Config mode will set everything as needed.  The role of the CONFIG_MODE
option is to produce a nice error message when the package is not found.

Alex, as the author of the behavior can you suggest clearer wording?

Thanks,
-Brad



More information about the cmake-developers mailing list