mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 21:41:06 -05: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