From 016b47fff26558f33c4215d8030040426815ef37 Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Thu, 12 Sep 2024 10:22:58 -0400 Subject: [PATCH] Fix CMake gen when HLSL_BUILD_DXILCONV=0 Do not add dep on DxcEtw and DxcRuntimeEtw if HLSL_BUILD_DXILCONV is not enabled, otherwise CMake gen fails because these targets are not defined. --- tools/clang/tools/dxildll/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang/tools/dxildll/CMakeLists.txt b/tools/clang/tools/dxildll/CMakeLists.txt index 67a24d1107..ff6ce4cb76 100644 --- a/tools/clang/tools/dxildll/CMakeLists.txt +++ b/tools/clang/tools/dxildll/CMakeLists.txt @@ -58,7 +58,7 @@ target_link_libraries(dxildll PRIVATE dxcvalidator ) -if (WIN32) +if (WIN32 AND HLSL_BUILD_DXILCONV) add_dependencies(dxildll ${DXCDependencies} DxcEtw