chore: raise msvc warning level

This commit is contained in:
ToruNiina
2024-07-06 02:14:24 +09:00
parent d72493a2fc
commit b63668c0dc
2 changed files with 5 additions and 5 deletions

View File

@@ -99,7 +99,7 @@ if(TOML11_PRECOMPILE)
# required options to use toml11 with MSVC
if(MSVC)
target_compile_options(toml11 PUBLIC "/utf-8")
target_compile_options(toml11 PRIVATE "/W3" "/WX")
target_compile_options(toml11 PRIVATE "/W4" "/WX")
if(MSVC_VERSION LESS 1910)
message(STATUS "MSVC < 1910. DEFINE_CONVERSION_NON_INTRUSIVE is disabled")
target_compile_definitions(toml11 PUBLIC -DTOML11_WITHOUT_DEFINE_NON_INTRUSIVE)