aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLukas Oberhuber <lukaso@gmail.com>2022-11-17 13:37:20 +0000
committerGitHub <noreply@github.com>2022-11-17 14:37:20 +0100
commitf842c1bcf9264431cd3b15429a72b7dafbe80509 (patch)
treebac2ca79e37459f1d64ae968c8ff48ed6a2805e1 /CMakeLists.txt
parentae212a792e470b7a07dbb8fb4a5b3d78e1de78d1 (diff)
downloadbrotli-f842c1bcf9264431cd3b15429a72b7dafbe80509.zip
brotli-f842c1bcf9264431cd3b15429a72b7dafbe80509.tar.gz
brotli-f842c1bcf9264431cd3b15429a72b7dafbe80509.tar.bz2
fix macos rpath (#976)
Without this patch, the three libraries are not provided with valid rpaths, meaning they are not packaged correctly for macos. c.f. https://github.com/google/brotli/issues/934 (which is a similar issue) but should be fixed by this fix as well. Also https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/merge_requests/129
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2776f9f..e4a03aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,6 +146,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
add_definitions(-DOS_FREEBSD)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-DOS_MACOSX)
+ set(CMAKE_MACOS_RPATH TRUE)
+ set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
endif()
function(transform_sources_list INPUT_FILE OUTPUT_FILE)