diff --git a/cmake/onnxruntime_unittests.cmake b/cmake/onnxruntime_unittests.cmake index 737f2c7152104..3981d8945a357 100644 --- a/cmake/onnxruntime_unittests.cmake +++ b/cmake/onnxruntime_unittests.cmake @@ -450,14 +450,6 @@ if(WIN32) target_compile_options(onnx_test_runner_common PRIVATE ${DISABLED_WARNINGS_FOR_PROTOBUF} -D_CRT_SECURE_NO_WARNINGS) target_compile_options(onnx_test_runner PRIVATE ${DISABLED_WARNINGS_FOR_PROTOBUF}) #Maybe "CMAKE_SYSTEM_PROCESSOR" is better - if(NOT ${CMAKE_GENERATOR_PLATFORM} MATCHES "ARM") - add_library(onnx_test_runner_vstest SHARED ${onnx_test_runner_src_dir}/vstest_logger.cc ${onnx_test_runner_src_dir}/vstest_main.cc) - target_compile_options(onnx_test_runner_vstest PRIVATE ${DISABLED_WARNINGS_FOR_PROTOBUF}) - target_include_directories(onnx_test_runner_vstest PRIVATE ${ONNXRUNTIME_ROOT} ${date_INCLUDE_DIR}) - target_link_libraries(onnx_test_runner_vstest PRIVATE ${onnx_test_libs} onnx_test_runner_common) - set_property(TARGET onnx_test_runner_vstest APPEND_STRING PROPERTY LINK_FLAGS " /INCREMENTAL:NO /OPT:NOREF /PROFILE") - set_target_properties(onnx_test_runner_vstest PROPERTIES FOLDER "ONNXRuntimeTest") - endif() endif() set(onnxruntime_exec_src_dir ${TEST_SRC_DIR}/onnxruntime_exec)