mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
cmake --install <b> --prefix <p> broken in 1.2.0
#555
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vszakats on GitHub (Oct 31, 2025).
When installing man pages, the installation directory is set to its
full, final, absolute path (
CMAKE_INSTALL_FULL_MANDIR). This makesthe build ignore a
--prefixset at install time, and fail:Live example: https://github.com/curl/curl-for-win/actions/runs/18853487748/job/53795465550
In other envs, or when run with sudo, it may overwrite system man pages
with the one from this build.
The CMake manual says this about
CMAKE_INSTALL_FULL_*variables:"These variables shouldn't be used in install() commands as they do
not work with the cmake --install command's --prefix option, or with
the cpack installer generators."
Ref: https://cmake.org/cmake/help/v4.2/module/GNUInstallDirs.html
The commit leading up to this fixed and earlier wrong variable:
cff5803216#1084A correct fix is to use the recommended variable
CMAKE_INSTALL_MANDIRinstead of its
_FULL_variant (as done already forLIBDIR,INCLUDEDIR).Confirmed working: https://github.com/curl/curl-for-win/actions/runs/18853837259/job/53796629171
Closing the PR in favor of this report.
@eustas commented on GitHub (Nov 7, 2025):
Thanks for investigation and explanation. Will fix soon.
@vszakats commented on GitHub (Nov 24, 2025):
Seems to be fixed in #1384. No credits, no reference to this report.