CMake: Link dxguid.lib in dawn_native even when only d3d11 is enabled
Fixed: 349071736
Change-Id: I171517e7d2d1be39e5d65f395ad5c6f836426acc
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/194843
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Auto-Submit: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Quyen Le <lehoangquyen@chromium.org>
Commit-Queue: Quyen Le <lehoangquyen@chromium.org>
diff --git a/src/dawn/native/CMakeLists.txt b/src/dawn/native/CMakeLists.txt
index 8b2babc..e07f5c7 100644
--- a/src/dawn/native/CMakeLists.txt
+++ b/src/dawn/native/CMakeLists.txt
@@ -339,6 +339,7 @@
"d3d/UtilsD3D.h"
"d3d/d3d_platform.h"
)
+ target_link_libraries(dawn_native PRIVATE dxguid.lib)
endif()
if (DAWN_ENABLE_D3D11)
@@ -478,7 +479,6 @@
"d3d12/UtilsD3D12.h"
"d3d12/d3d12_platform.h"
)
- target_link_libraries(dawn_native PRIVATE dxguid.lib)
if (DAWN_USE_BUILT_DXC)
target_compile_definitions(dawn_native PRIVATE "DAWN_USE_BUILT_DXC")
target_link_libraries(dawn_native PRIVATE dxcompiler)