瀏覽代碼

dxexp: add explicit dependency on D3D12 (#3710)

Helena Kotas 4 年之前
父節點
當前提交
88ddd4c978
共有 1 個文件被更改,包括 8 次插入1 次删除
  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.
 add_llvm_tool(dxexp
   dxexp.cpp
-  )
+)
+
+find_package(D3D12 REQUIRED)
+
+target_link_libraries(dxexp
+  ${D3D12_LIBRARIES}
+  dxguid.lib
+)