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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-12-27 21:08:41 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-12-27 21:08:41 +1100
commit8f1cadbbf2f0ad7b13f300bc50d039738e43352d (patch)
treebe33c1d91669ac357760f4bbf39ba53218d99872
parent5cf11ead986b950a9932fae667805fd71d79fa72 (diff)
enable hardened runtime on macOS builds
-rw-r--r--source/client/CMakeLists.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/client/CMakeLists.txt b/source/client/CMakeLists.txt
index a6773d3..474f2f8 100644
--- a/source/client/CMakeLists.txt
+++ b/source/client/CMakeLists.txt
@@ -31,12 +31,16 @@ ADD_EXECUTABLE (starbound WIN32
$<TARGET_OBJECTS:star_application> $<TARGET_OBJECTS:star_rendering> $<TARGET_OBJECTS:star_windowing> $<TARGET_OBJECTS:star_frontend>
${star_client_HEADERS} ${star_client_SOURCES} ${star_client_RESOURCES})
-IF(STAR_PRECOMPILED_HEADERS)
+IF (STAR_PRECOMPILED_HEADERS)
TARGET_PRECOMPILE_HEADERS (starbound REUSE_FROM star_core)
ENDIF()
-IF(UNIX)
- set_target_properties (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'$ORIGIN'")
+IF (UNIX)
+ SET_TARGET_PROPERTIES (starbound PROPERTIES LINK_FLAGS "-Wl,-rpath,'$ORIGIN'")
+ENDIF()
+
+IF (STAR_SYSTEM_MACOS)
+ SET_TARGET_PROPERTIES (starbound PROPERTIES XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES)
ENDIF()
TARGET_LINK_LIBRARIES (starbound ${STAR_EXT_LIBS} ${STAR_EXT_GUI_LIBS})