Implement CMAKE_FIND_PACKAGE_PREFER_CONFIG option. Issue #16805
I closed the previous merge request and started over. Hope it didn't problems.
Notes:
- When
CMAKE_FIND_PACKAGE_PREFER_CONFIG
isTRUE
the variableCMAKE_FIND_PACKAGE_WARN_NO_MODULE
is ignored. One variable is wanting to enforce an explicit mode while the other is requesting an implicit mode. - I did not build the Help files, so please check those.
- I placed the remarks about result variables for
<PKG>Config.cmake
in the help for the new variable. If you would rather the remarks appear in the find_package command help, let me know.