summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorDario Mylonopoulos <32958057+ramenguy99@users.noreply.github.com>2025-01-24 12:15:02 +0100
committerGitHub <noreply@github.com>2025-01-24 19:15:02 +0800
commitac174d260d90b66ebbc8264001a75b9527611cbc (patch)
treedb68e09e342190daba5d500467901c459fa20070 /source/core
parenta9ce7520e5f1b97b09e5de69455258bef55e10d2 (diff)
Fix static build and install (#6158)
* Add SLANG_ENABLE_RELEASE_LTO cmake option * Fix cmake static build * Disable install SlangTargets to avoid static build failing
Diffstat (limited to 'source/core')
-rw-r--r--source/core/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/CMakeLists.txt b/source/core/CMakeLists.txt
index 8228d0067..a8c19f4b5 100644
--- a/source/core/CMakeLists.txt
+++ b/source/core/CMakeLists.txt
@@ -1,6 +1,7 @@
slang_add_target(
.
STATIC
+ EXPORT_MACRO_PREFIX SLANG
EXCLUDE_FROM_ALL
USE_EXTRA_WARNINGS
LINK_WITH_PRIVATE miniz lz4_static Threads::Threads ${CMAKE_DL_LIBS}