Browse Source

dxexp: add explicit dependency on D3D12 (#3710)

Helena Kotas 4 years ago
parent
commit
88ddd4c978
1 changed files with 8 additions and 1 deletions
  1. 8 1
      tools/dxexp/CMakeLists.txt

+ 8 - 1
tools/dxexp/CMakeLists.txt

@@ -2,4 +2,11 @@
 # This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details.
 # This file is distributed under the University of Illinois Open Source License. See LICENSE.TXT for details.
 add_llvm_tool(dxexp
 add_llvm_tool(dxexp
   dxexp.cpp
   dxexp.cpp
-  )
+)
+
+find_package(D3D12 REQUIRED)
+
+target_link_libraries(dxexp
+  ${D3D12_LIBRARIES}
+  dxguid.lib
+)