-
Notifications
You must be signed in to change notification settings - Fork 21
/
CMakePresets.json
38 lines (38 loc) · 1.08 KB
/
CMakePresets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 14,
"patch": 0
},
"configurePresets": [
{
"name": "dev",
"description": "Base preset for library developers",
"binaryDir": "${sourceDir}/build",
"hidden": true,
"cacheVariables": {
"MYLIB_BUILD_TESTS": "ON",
"MYLIB_BUILD_EXAMPLES": "ON"
}
},
{
"name": "dev-win",
"description": "Windows preset for library developers",
"hidden": false,
"inherits": ["dev"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/W4 /EHsc /w14242 /w14254 /w14263 /w14265 /w14287 /w14289 /w14296 /w14311 /w14545 /w14546 /w14547 /w14549 /w14555 /w14640 /w14826 /w14928 /WX"
}
},
{
"name": "dev-linux",
"description": "Linux preset for library developers",
"hidden": false,
"inherits": ["dev"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wcast-align -Wcast-qual -Wnull-dereference -Woverloaded-virtual -Wformat=2 -Werror"
}
}
]
}