Skip to content

Commit 72f53a8

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +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)
101103
if (SPM_ENABLE_MSVC_MT_BUILD)
102104
string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
103105
string(REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_MINSIZEREL ${CMAKE_CXX_FLAGS_MINSIZEREL})

0 commit comments

Comments
 (0)