Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CVS-149644] Fixed ONNX FE debug build (#26301)

Ilya Lavrenov98188ad2efa7
diff --git a/thirdparty/onnx/CMakeLists.txt b/thirdparty/onnx/CMakeLists.txt
index abc1db0fd05..f92c2729f93 100644
--- a/thirdparty/onnx/CMakeLists.txt
+++ b/thirdparty/onnx/CMakeLists.txt
@@ -50,7 +50,7 @@ if(MINGW)
endif()
# from onnx==1.13.1 it requires C++17 when compiling on Windows, and since onnx==1.16.0 on Linux
-target_compile_features(onnx PRIVATE cxx_std_17)
+target_compile_features(onnx_proto PUBLIC cxx_std_17)
ov_disable_all_warnings(onnx onnx_proto)