mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-29 02:20:17 -06:00
If a package is found but FPHSA is called by the find module without a
`VERSION_VAR`, and the `find_package` call specifies a version, we have
previously accepted the package as found. This was accidentally
regressed by commit 8f50f135ae (FPHSA: Improve error message when
VERSION_VAR is empty or has been unset(), 2022-08-01). Restore it and
add a test case.
See the "Find Modules" section of the cmake-developer(7) manual page. For more information about how to contribute modules to CMake, see this page: https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/dev/Module-Maintainers