Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b218169
Disable deprecated features in cpp20 as errors
praasz Feb 12, 2024
9a8563c
Build compatibility for cpp 11 and 20
praasz Feb 12, 2024
33e8a0d
Use cpp20 in CC builds
praasz Feb 12, 2024
a693bce
Fix c++20 build issues on GPU
praasz Feb 13, 2024
0a3d0f6
Fix cpp20 build issues on windows (use private)
praasz Feb 13, 2024
0515827
Move rapidjson iterator operators and build it only for c++20
praasz Feb 13, 2024
4480f8b
Use invoke_result for cpp20 instead result_of
praasz Feb 13, 2024
019867d
Fix cpp20 detection because of MSVC bug
praasz Feb 14, 2024
3dfb834
Cpp20 MSVC fix add lambda return type to avoid deduction issues
praasz Feb 14, 2024
ee77aba
Cpp20 MSVC fix declare specialization
praasz Feb 14, 2024
5250e18
Update gtest to fix build issues with cpp20
praasz Feb 14, 2024
1fdc7d1
Don't use wstring for logger and exception message
praasz Feb 14, 2024
ec91b9c
Remove not required c-style cast
praasz Feb 14, 2024
ac33f64
Remove ov_deprecated_featurs_no_errors macro
praasz Feb 15, 2024
0ebb775
Merge remote-tracking branch 'origin/master' into feature/support-ov-…
praasz Feb 15, 2024
bd85f46
Fix condition for Wno-error=deprecated
praasz Feb 15, 2024
4d2a920
Add -Wno-error=deprecated to Clang
praasz Feb 15, 2024
0ea0e3c
Merge branch 'master' into feature/support-ov-compilatoin-with-cpp20
praasz Feb 16, 2024
8b59864
Remove warnings for `abs` use in inverse
praasz Feb 16, 2024
9ad6b3a
Update gtest submodule
praasz Feb 16, 2024
a553132
Merge branch 'master' into feature/support-ov-compilatoin-with-cpp20
ilya-lavrenov Feb 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/snippets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ endif()
if(UNUSED_BUT_SET_VARIABLE_SUPPORTED)
ov_add_compiler_flags(-Wno-unused-but-set-variable)
endif()
if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)

if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/common/low_precision_transformations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS})

# Create library
if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/common/snippets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS})

# Create static library
if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/common/transformations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source_group("src" FILES ${LIBRARY_SRC})
source_group("include" FILES ${PUBLIC_HEADERS})

# Create library
if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/frontends/paddle/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/frontends/pytorch/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
#

if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set(TARGET_NAME "openvino_intel_cpu_plugin")

if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/intel_gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()

set (TARGET_NAME "openvino_intel_gpu_plugin")

if(CMAKE_CXX_STANDARD GREATER_EQUAL 20)
if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_STANDARD GREATER_EQUAL 20)
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated ${CMAKE_CXX_FLAGS}")
endif()

Expand Down