aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-05-06 09:57:00 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-05-06 09:57:00 +0200
commit71d2fcc491c87a8b1e2986112580196885d24238 (patch)
tree576a8238003c25545f6e558f13d724017f6aae61
parent86aaf0e80896e8c21cdc485d731fc1cab31061c6 (diff)
CMake: set MacOS RPATH
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4849403ac..2b96695d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,7 @@ set(CPACK_PACKAGE_VERSION_PATCH 0)
# Note: CPACK_PACKAGING_INSTALL_PREFIX and CMAKE_INSTALL_PREFIX are *not* the same.
# It is used only to ease environment file loading via systemd.
set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
+set(CMAKE_MACOSX_RPATH 1)
include(CPack)
include(CheckFunctionExists)