From 0b87355f946b9a0f8b7fa9225369dade3d5bf84a Mon Sep 17 00:00:00 2001 From: Gangzheng Tong Date: Tue, 26 Aug 2025 11:01:07 -0700 Subject: Update slang-rhi deps for gfx-unit-test (#8237) This PR marks the `slang-rhi` a required dependecy for `platform` and `gfx-unit-test`, and only build them when `SLANG_ENABLE_SLANG_RHI=ON`. This should allow the slang still to be built without those tests components when `SLANG_ENABLE_SLANG_RHI=OFF`. --------- Co-authored-by: slangbot Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index e67e56ea5..2676a8ca7 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -72,7 +72,7 @@ function(example dir) ) endfunction() -if(SLANG_ENABLE_EXAMPLES) +if(SLANG_ENABLE_EXAMPLES AND SLANG_ENABLE_SLANG_RHI) # # Examples # -- cgit v1.2.3