From 813da81d6110d8b538f0f20973974b62f54de968 Mon Sep 17 00:00:00 2001 From: Asd-g <65298684+Asd-g@users.noreply.github.com> Date: Sat, 31 Aug 2024 23:55:10 +0300 Subject: [PATCH] mlrt_ov/CMakeLists.txt: add delay loaded openvino.dll --- mlrt_ov/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mlrt_ov/CMakeLists.txt b/mlrt_ov/CMakeLists.txt index 41468cd..8c26f9a 100644 --- a/mlrt_ov/CMakeLists.txt +++ b/mlrt_ov/CMakeLists.txt @@ -28,6 +28,11 @@ target_link_libraries(mlrt_ov PRIVATE avisynth ) +if (MSVC) + target_link_libraries(mlrt_ort PRIVATE delayimp) + target_link_options(mlrt_ort PRIVATE "/DELAYLOAD:openvino.dll") +endif() + target_compile_features(mlrt_ov PRIVATE cxx_std_20) if (MSVC)