mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #1089] CMake: install relocatable shared libs for macOS #1638
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?
Original Pull Request: https://github.com/google/brotli/pull/1089
State: closed
Merged: Yes
Remove hardcoded
CMAKE_INSTALL_NAME_DIR, so that it's@rpathby default (default CMake behavior when cmake_minimum_required() is at least 3.0).set(CMAKE_MACOS_RPATH TRUE)is useless, it's the default value for CMake if cmake_minimum_required() is at least 3.0 as well, no need to hardcode this value.It reverts https://github.com/google/brotli/pull/976 (hardcoding
CMAKE_INSTALL_NAME_DIRis bad practice).If someone wants to change this behavior for a specific reason,
CMAKE_INSTALL_NAME_DIRcan be injected externally, no need to patch build files.