diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-26 02:00:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 18:00:33 +0000 |
| commit | 9cfdf5de6b867ca7a95b3a74f30471cbe7c87494 (patch) | |
| tree | 8002ba28c2d0c65f4ade13425efb38f936bd8869 /CMakeLists.txt | |
| parent | c0726e1d571f7f319a244ee6a6ba1ed2c361e079 (diff) | |
Fix SLANG_USE_SYSTEM_SPIRV_HEADERS=TRUE (#7916)
find_package is locally scoped, so like other find_packages we should do
it at the top level
Closes https://github.com/shader-slang/slang/issues/7643
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 685f5a141..9ca1621b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -404,6 +404,10 @@ if(${SLANG_USE_SYSTEM_UNORDERED_DENSE}) find_package(unordered_dense CONFIG QUIET) endif() +if(SLANG_USE_SYSTEM_SPIRV_HEADERS) + find_package(SPIRV-Headers REQUIRED) +endif() + add_subdirectory(external) # webgpu_dawn is only available as a fetched shared library, since Dawn's nested source |
