mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-14 18:38:50 -05:00
8ed868606d
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