From 5ceef13e2336dfa1c4de8fdb3a273d81add0a7ca Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 19 Feb 2025 15:51:22 +0800 Subject: 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 --- cmake/CompilerFlags.cmake | 1 + 1 file changed, 1 insertion(+) (limited to 'cmake/CompilerFlags.cmake') 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) $<$:SLANG_ENABLE_FULL_IR_VALIDATION> $<$:SLANG_ENABLE_IR_BREAK_ALLOC> $<$:SLANG_CONFIG_DX_ON_VK> + $<$:STB_IMAGE_STATIC> ) if(SLANG_ENABLE_ASAN) -- cgit v1.2.3