Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/client/CMakeLists.txt
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-06-03 15:25:49 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2025-06-03 15:25:49 +1000
commit14a406531087a2614b235356aaa49ebf6a3eb77c (patch)
tree530420fe1344ad3a6f80834d448615504817b81a /source/client/CMakeLists.txt
parent051dad070eada5ffb9f3e69702faf39d29600bf6 (diff)
use @loader_path instead of $ORIGIN on macOS
Diffstat (limited to 'source/client/CMakeLists.txt')
-rw-r--r--source/client/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/client/CMakeLists.txt b/source/client/CMakeLists.txt
index 474f2f8..312606e 100644
--- a/source/client/CMakeLists.txt
+++ b/source/client/CMakeLists.txt
@@ -35,7 +35,9 @@ IF (STAR_PRECOMPILED_HEADERS)
TARGET_PRECOMPILE_HEADERS (starbound REUSE_FROM star_core)
ENDIF()
-IF (UNIX)
+IF(STAR_SYSTEM_MACOS)
+ SET_TARGET_PROPERTIES (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'@loader_path'")
+ELSEIF (UNIX)
SET_TARGET_PROPERTIES (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'$ORIGIN'")
ENDIF()