mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
Layer dev dml delayload (#2580)
This commit is contained in:
parent
be48f05c64
commit
b3c568cf4d
1 changed files with 8 additions and 3 deletions
|
|
@ -415,10 +415,15 @@ set_target_properties(winml_dll
|
|||
PROPERTIES
|
||||
OUTPUT_NAME windows.ai.machinelearning)
|
||||
|
||||
if (onnxruntime_USE_DML)
|
||||
set(delayload_dml "/DELAYLOAD:directml.dll")
|
||||
endif(onnxruntime_USE_DML)
|
||||
|
||||
set_target_properties(winml_dll
|
||||
PROPERTIES
|
||||
LINK_FLAGS
|
||||
"/DEF:${WINML_DIR}/windows.ai.machinelearning.def ${os_component_link_flags} /DELAYLOAD:d3d12.dll /DELAYLOAD:d3d11.dll /DELAYLOAD:dxgi.dll /DELAYLOAD:directml.dll")
|
||||
PROPERTIES
|
||||
LINK_FLAGS
|
||||
"/DEF:${WINML_DIR}/windows.ai.machinelearning.def ${os_component_link_flags} /DELAYLOAD:d3d12.dll /DELAYLOAD:d3d11.dll /DELAYLOAD:dxgi.dll ${delayload_dml}")
|
||||
|
||||
|
||||
set_target_properties(winml_dll
|
||||
PROPERTIES
|
||||
|
|
|
|||
Loading…
Reference in a new issue