diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-08-26 11:01:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 18:01:07 +0000 |
| commit | 0b87355f946b9a0f8b7fa9225369dade3d5bf84a (patch) | |
| tree | d2c23abda1e6ed24e9869cecd68a257fd32a685e /CMakeLists.txt | |
| parent | b36659eca38be716bee43c01c6584bda5f91166a (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 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a5870b452..1ab208c2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,12 +142,12 @@ option( ) option( SLANG_ENABLE_TESTS - "Enable test targets, some tests may require SLANG_ENABLE_GFX, SLANG_ENABLE_SLANGD or SLANG_ENABLE_SLANGRT" + "Enable test targets, some tests may require SLANG_ENABLE_SLANG_RHI, SLANG_ENABLE_SLANGD or SLANG_ENABLE_SLANGRT" ON ) option( SLANG_ENABLE_EXAMPLES - "Enable example targets, requires SLANG_ENABLE_GFX" + "Enable example targets, requires SLANG_ENABLE_SLANG_RHI" ON ) option(SLANG_ENABLE_REPLAYER "Enable slang-replay tool" ON) @@ -399,8 +399,8 @@ if(SLANG_ENABLE_NVAPI AND NOT CMAKE_SYSTEM_NAME MATCHES "Windows") message(SEND_ERROR "SLANG_ENABLE_NVAPI is only supported on Windows") endif() -if(SLANG_ENABLE_TESTS AND NOT SLANG_ENABLE_GFX) - message(SEND_ERROR "SLANG_ENABLE_TESTS requires SLANG_ENABLE_GFX") +if(SLANG_ENABLE_TESTS AND NOT SLANG_ENABLE_SLANG_RHI) + message(SEND_ERROR "SLANG_ENABLE_TESTS requires SLANG_ENABLE_SLANG_RHI") endif() # |
