From 717ec53254fd5814c9bfa22dca23328846e261f0 Mon Sep 17 00:00:00 2001 From: zhangbopd <1299246947@qq.com> Date: Sun, 8 Oct 2023 09:13:02 +0000 Subject: [PATCH] fix for win ci --- test/cpp/pir/core/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/cpp/pir/core/CMakeLists.txt b/test/cpp/pir/core/CMakeLists.txt index b8fcee3932422..0f0ec568bb50a 100644 --- a/test/cpp/pir/core/CMakeLists.txt +++ b/test/cpp/pir/core/CMakeLists.txt @@ -140,3 +140,9 @@ cc_test_old( test_dialect gtest pir) + +if(WITH_ONNXRUNTIME AND WIN32) + # Copy onnxruntime for some c++ test in Windows, since the test will + # be build only in CI, so suppose the generator in Windows is Ninja. + copy_onnx(ir_op_test) +endif()