Skip to content

Commit

Permalink
Fix CMake gen when HLSL_BUILD_DXILCONV=0
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
amaiorano committed Sep 12, 2024
1 parent f11914c commit 016b47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clang/tools/dxildll/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ target_link_libraries(dxildll PRIVATE
dxcvalidator
)

if (WIN32)
if (WIN32 AND HLSL_BUILD_DXILCONV)
add_dependencies(dxildll
${DXCDependencies}
DxcEtw
Expand Down

0 comments on commit 016b47f

Please sign in to comment.