Skip to content

Commit c438bd9

Browse files
committed
docs: CMakeUserPresets.json.example includes warnings
1 parent 9bfb5f4 commit c438bd9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeUserPresets.json.example

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"cacheVariables": {
1616
"LLVM_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm-project\\llvm\\install\\MSVC\\Debug",
1717
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm-project\\llvm\\install\\MSVC\\Debug",
18-
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
18+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
19+
"CMAKE_CXX_FLAGS": "/W4",
20+
"CMAKE_C_FLAGS": "/W4"
1921
},
2022
"condition": {
2123
"type": "equals",
@@ -79,7 +81,9 @@
7981
"CMAKE_C_COMPILER": "/usr/bin/gcc-13",
8082
"LLVM_ROOT": "/home/$env{USER}/libraries/llvm-project/llvm/install/Linux/Release",
8183
"Clang_ROOT": "/home/$env{USER}/libraries/llvm-project/llvm/install/Linux/Release",
82-
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
84+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
85+
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Werror",
86+
"CMAKE_C_FLAGS": "-Wall -Wextra -Wpedantic -Werror"
8387
},
8488
"vendor": {
8589
"microsoft.com/VisualStudioSettings/CMake/1.0": {

0 commit comments

Comments
 (0)