CMAKE_FIND_USE_INSTALL_PREFIX doesn't consider CMAKE_STAGING_PREFIX
It would appear (on the surface at least) that CMAKE_FIND_USE_INSTALL_PREFIX
is intended to be a direct replacement for CMAKE_FIND_NO_INSTALL_PREFIX
. The former overrides the latter when both are defined, or at least it appears that is the case, but that isn't always true. CMAKE_FIND_USE_INSTALL_PREFIX
only affects whether CMAKE_INSTALL_PREFIX
is searched, but CMAKE_FIND_NO_INSTALL_PREFIX
affects CMAKE_STAGING_PREFIX
as well. That means you could end up in a situation where CMAKE_FIND_USE_INSTALL_PREFIX
controls CMAKE_INSTALL_PREFIX
but CMAKE_FIND_NO_INSTALL_PREFIX
controls CMAKE_STAGING_PREFIX
.
It appears that CMAKE_FIND_USE_INSTALL_PREFIX
not accounting for CMAKE_STAGING_PREFIX
may have been an oversight in !7163 (merged).