Skip to content

Commit

Permalink
Fix CMake gen failing when HLSL_BUILD_DXILCONV=0 (#6912)
Browse files Browse the repository at this point in the history
Target dxildll depends on DxcRuntimeEtw, so make sure to add this
target, even when HLSL_BUILD_DXILCONV is false.
  • Loading branch information
amaiorano authored Sep 12, 2024
1 parent f11914c commit 05334a7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions projects/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
set(DXC_PROJECTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(DXC_PROJECTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})

if(WIN32 AND HLSL_BUILD_DXILCONV)
add_subdirectory(include/Tracing)
if(WIN32)
add_subdirectory(include/Tracing) # DxcRuntimeEtw target

if(HLSL_BUILD_DXILCONV)
add_subdirectory(dxilconv)
endif (WIN32 AND HLSL_BUILD_DXILCONV)
endif (HLSL_BUILD_DXILCONV)

endif (WIN32)

0 comments on commit 05334a7

Please sign in to comment.