summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2025-02-19 15:51:22 +0800
committerGitHub <noreply@github.com>2025-02-18 23:51:22 -0800
commit5ceef13e2336dfa1c4de8fdb3a273d81add0a7ca (patch)
tree9e59e1d4d45c0686e7293b20838493aa2a829edd /cmake
parentad69ebd873a0fc79d1781863f1049daffa2cc318 (diff)
Fix and document static build (#6374)
* Set static stbi flag for static builds * Add missing SYSTEM directive for external includes * Add instructions for linking statically against slang --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CompilerFlags.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake
index b35f98b98..ad9a69185 100644
--- a/cmake/CompilerFlags.cmake
+++ b/cmake/CompilerFlags.cmake
@@ -205,6 +205,7 @@ function(set_default_compile_options target)
$<$<BOOL:${SLANG_ENABLE_FULL_DEBUG_VALIDATION}>:SLANG_ENABLE_FULL_IR_VALIDATION>
$<$<BOOL:${SLANG_ENABLE_IR_BREAK_ALLOC}>:SLANG_ENABLE_IR_BREAK_ALLOC>
$<$<BOOL:${SLANG_ENABLE_DX_ON_VK}>:SLANG_CONFIG_DX_ON_VK>
+ $<$<STREQUAL:${SLANG_LIB_TYPE},STATIC>:STB_IMAGE_STATIC>
)
if(SLANG_ENABLE_ASAN)