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 --- external/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'external') diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 2a9d3fee8..f23027f68 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -89,11 +89,19 @@ endif() # imgui add_library(imgui INTERFACE) -target_include_directories(imgui INTERFACE "${CMAKE_CURRENT_LIST_DIR}/imgui") +target_include_directories( + imgui + ${system} + INTERFACE "${CMAKE_CURRENT_LIST_DIR}/imgui" +) # stb add_library(stb INTERFACE) -target_include_directories(stb INTERFACE "${CMAKE_CURRENT_LIST_DIR}/stb") +target_include_directories( + stb + ${system} + INTERFACE "${CMAKE_CURRENT_LIST_DIR}/stb" +) # slang-rhi if(SLANG_ENABLE_SLANG_RHI) -- cgit v1.2.3