mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
Use target_add_dml function (#3005)
* Use target_add_dml function * Don't access DML if disabled
This commit is contained in:
parent
abb626ff60
commit
e5f7e04e6f
1 changed files with 3 additions and 1 deletions
|
|
@ -180,7 +180,9 @@ add_dependencies(winml_lib_ort winml_api_native)
|
|||
add_dependencies(winml_lib_ort winml_api_native_internal)
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(winml_lib_ort PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/packages/DirectML.0.0.1/build/DirectML.targets)
|
||||
if (onnxruntime_USE_DML)
|
||||
target_add_dml(winml_lib_ort)
|
||||
endif()
|
||||
target_link_libraries(winml_lib_ort PRIVATE wil)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue