Delay load dxcore in winml model tests

This commit is contained in:
Ryan Lai 2021-02-05 13:06:02 -08:00 committed by Changming Sun
parent b50b0a89aa
commit b57a7f4de3

View file

@ -279,6 +279,9 @@ if(NOT onnxruntime_ENABLE_MEMLEAK_CHECKER)
SOURCES ${winml_test_model_src}
LIBS winml_test_common ${winml_test_model_libs}
)
if (EXISTS ${dxcore_header})
target_delayload(winml_test_model ext-ms-win-dxcore-l1-*.dll)
endif()
target_precompiled_header(winml_test_model testPch.h)
endif()