[cmake-developers] Patch: Don't emit warning when config file not found
Brad King
brad.king at kitware.com
Thu Oct 6 09:56:16 EDT 2016
On 10/05/2016 05:35 PM, Christoph Grüninger wrote:
> Vc provides a ConfigVc.cmake.
>
> 1. When I use "find_package(Vc)", many users get warnings that neither
> FindVc.cmake nor VcConfig.cmake is found.
You can use
find_package(Vc CONFIG)
to drop the FindVc part of the message.
> 2. When I use "find_package(Vc QUIET)", Vc does not show up in the
> feature summary.
Try:
find_package(Vc CONFIG QUIET)
Then use the `INCLUDE_QUIET_PACKAGES` option to feature_summary():
https://cmake.org/cmake/help/v3.7/module/FeatureSummary.html
-Brad
More information about the cmake-developers
mailing list