Skip to content

Commit 4632778

Browse files
committed
suppress the build error on msvc with C++20
1 parent 72f53a8 commit 4632778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ endif()
9898

9999
if (MSVC)
100100
add_definitions("/wd4267 /wd4244 /wd4305 /Zc:strictStrings /utf-8")
101-
# TODO(taku): Update protobuf to deprecate C++17 std::is_pod
102-
add_compile_definitions(_SILENCE_CXX20_IS_POD_DEPRECATION_WARNING)
101+
# TODO(taku): Update protobuf to deprecate C++17
102+
add_compile_definitions(_SILENCE_ALL_CXX20_DEPRECATION_WARNINGS)
103103
if (SPM_ENABLE_MSVC_MT_BUILD)
104104
string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
105105
string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_MINSIZEREL ${CMAKE_CXX_FLAGS_MINSIZEREL})

0 commit comments

Comments
 (0)