cmake: Allow CMAKE_INSTALL_PREFIX to be set by environment variable

Fixes: #25023
13 files changed