Merge pull request #8993 from JosJuice/silence-cxx17-codecvt

CMake: Add -D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
This commit is contained in:
LC 2020-07-30 21:44:25 -04:00 committed by GitHub
commit e6450de88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS)
add_definitions(-D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING)
endif()
set(CMAKE_CXX_STANDARD 17)