From 14a406531087a2614b235356aaa49ebf6a3eb77c Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 3 Jun 2025 15:25:49 +1000 Subject: use @loader_path instead of $ORIGIN on macOS --- source/client/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/client/CMakeLists.txt') 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() -- cgit v1.2.3