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

summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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()