Skip to content

Implement CMAKE_FIND_PACKAGE_PREFER_CONFIG option. Issue #16805

Mel requested to merge MelDavis/cmake:find-pkg-prefer-config into master

I closed the previous merge request and started over. Hope it didn't problems.

Notes:

  • When CMAKE_FIND_PACKAGE_PREFER_CONFIG is TRUE the variable CMAKE_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.

Merge request reports