Skip to content

Commit 6430939

Browse files
authored
[HLSL][CMake] Cache files don't have generator vars (#92793)
Doh! CMake cache scripts don't have generator variables set yet, so the script can't depend on the generator variables. Instead I've added a variable that a user can specify to enable the distribution settings.
1 parent e75b58c commit 6430939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/cmake/caches/HLSL.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra" CACHE STRING "")
1212

1313
set(CLANG_ENABLE_HLSL On CACHE BOOL "")
1414

15-
if (NOT CMAKE_CONFIGURATION_TYPES)
15+
if (HLSL_ENABLE_DISTRIBUTION)
1616
set(LLVM_DISTRIBUTION_COMPONENTS
1717
"clang;hlsl-resource-headers;clangd"
1818
CACHE STRING "")

0 commit comments

Comments
 (0)