msvc: enable compiler checks added in vs 17.5

This commit is contained in:
Shawn Hoffman
2023-02-22 13:22:08 -08:00
parent 35bde3e7c8
commit 5bf9ad7d82
2 changed files with 3 additions and 5 deletions

View File

@ -326,7 +326,7 @@ if(MSVC)
# Note: In msbuild build, this gets set by msbuild by default
add_compile_options(/Zc:inline)
# Fix various other non-conformant behaviors
add_compile_options(/Zc:__cplusplus,enumTypes,externConstexpr,preprocessor,throwingNew)
add_compile_options(/Zc:__cplusplus,enumTypes,externConstexpr,preprocessor,templateScope,throwingNew)
# Enforce strict volatile semantics as per ISO C++
add_compile_options(/volatile:iso)