mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-14 10:19:56 -06:00
When `CMAKE_FIND_PACKAGE_PREFER_CONFIG` mode was set to `ON`, failure to find a package was fatal even if it was not `REQUIRED`. Fix this and add a test case. Fixes: #19557