diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-02-19 15:51:22 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 23:51:22 -0800 |
| commit | 5ceef13e2336dfa1c4de8fdb3a273d81add0a7ca (patch) | |
| tree | 9e59e1d4d45c0686e7293b20838493aa2a829edd /external | |
| parent | ad69ebd873a0fc79d1781863f1049daffa2cc318 (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 'external')
| -rw-r--r-- | external/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
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) |
