Skip to content

Commit 4a63c8b

Browse files
committed
Update
1 parent 2efb63a commit 4a63c8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/cpp-optparse.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ if(NOT TARGET cpp-optparse)
55
add_library(cpp-optparse ${SOURCE_FILES})
66
if(MSVC)
77
# C4244: 'conversion' conversion from 'type1' to 'type2', possible loss of data
8-
set_target_properties(cpp-optparse PROPERTIES COMPILE_FLAGS "${PEDANTIC_COMPILE_FLAGS} /wd4244")
8+
# C4996: <header> is removed in C++20
9+
set_target_properties(cpp-optparse PROPERTIES COMPILE_FLAGS "${PEDANTIC_COMPILE_FLAGS} /wd4244 /wd4996")
910
else()
1011
set_target_properties(cpp-optparse PROPERTIES COMPILE_FLAGS "${PEDANTIC_COMPILE_FLAGS}")
1112
endif()

0 commit comments

Comments
 (0)