Update to the latest cmake for Windows (#13604)

* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
This commit is contained in:
Ilya Churaev authored and GitHub committed 2022-10-25 18:11:46 +04:00
1 parent dd3a37657c
commit 2a344b66cb
34 files changed
+105 -20

No files matched your search

@@ -2,6 +2,12 @@
# SPDX-License-Identifier: Apache-2.0
#
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4267)
ie_add_compiler_flags(/wd4018)
ie_add_compiler_flags(/wd4244)
endif()
ov_add_frontend(NAME onnx
LINKABLE_FRONTEND
PROTOBUF_LITE
+6
View File
@@ -10,6 +10,12 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT ENABLE_SANITIZER)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fuse-ld=gold")
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4244)
ie_add_compiler_flags(/wd4267)
endif()
message(STATUS "ONNX frontend test enabled")
add_compile_definitions(
+3
View File
@@ -2,6 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
#
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4305)
endif()
ov_add_frontend(NAME paddle
LINKABLE_FRONTEND
PROTOBUF_LITE
@@ -2,6 +2,12 @@
# SPDX-License-Identifier: Apache-2.0
#
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
ie_add_compiler_flags(/wd4244)
ie_add_compiler_flags(/wd4018)
ie_add_compiler_flags(/wd4267)
endif()
if(NOT CPACK_GENERATOR MATCHES "^(DEB|RPM|CONDA-FORGE|BREW)$")
set(linkable_frontend LINKABLE_FRONTEND)
endif()
+1 -1
View File
@@ -200,7 +200,7 @@ std::vector<std::shared_ptr<OpPlace>> InputModel::InputModelTFImpl::determine_cu
size_t producer_output_port_idx;
try {
current_operation_decoder->get_input_node(input_port_idx, producer_name, producer_output_port_idx);
} catch (const std::exception& e) {
} catch (const std::exception&) {
FRONT_END_THROW("[ ERROR ] Exception happened when preparing input " +
std::to_string(input_port_idx) + " for op '" +
current_operation_decoder->get_op_name() + "', expected input name: '" +