Ability to reset find_package result
When using package managers often you get hit by the fact that new versions of dependencies are not taken into account. This is due to the fact that
find_package() is caching its result in your CMakeCache and doesn't search again due to presence of cached variables.
It would be really nice if there would be an option to force re-searching of the packages without having to remove your whole cache or using a new build folder. Something like
CMAKE_RESET_FIND_PACKAGE for all calls and/or
CMAKE_RESET_FIND_PACKAGE_<PackageName> for individual packages would be nice.
Or having an option to not cache the result of the
find_package() call after all, similar as requested for
find_library() (#20687). With also the ability to declare this globally for all calls with a variable