summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGangzheng Tong <tonggangzheng@gmail.com>2025-08-26 11:01:07 -0700
committerGitHub <noreply@github.com>2025-08-26 18:01:07 +0000
commit0b87355f946b9a0f8b7fa9225369dade3d5bf84a (patch)
treed2c23abda1e6ed24e9869cecd68a257fd32a685e /examples
parentb36659eca38be716bee43c01c6584bda5f91166a (diff)
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 <ellieh+slangbot@nvidia.com> Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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
#