Skip to content

Commit ba8a346

Browse files
committed
Add more flags to the Windows preset
The /Zc flags are to enable standard conforming behavior for MSVC, instead of relying on the Microsoft extensions to the language.
1 parent 72f810d commit ba8a346

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake-init/templates/common/CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"name": "flags-windows",
1818
"hidden": true,
1919
"cacheVariables": {
20-
"CMAKE_CXX_FLAGS": "/W4 /permissive- /EHsc"
20+
"CMAKE_CXX_FLAGS": "/W4 /permissive- /EHsc /volatile:iso /Zc:__cplusplus /Zc:preprocessor /Zc:throwingNew"
2121
}
2222
},
2323
{

0 commit comments

Comments
 (0)