-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
53 lines (52 loc) · 1.55 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"version": 3,
"cmakeMinimumRequired":{
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "msvc",
"displayName": "MSVC",
"description": "Default build for MSVC",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/W4 /WX /MP /EHsc -DNOMINMAX",
"CMAKE_CXX_FLAGS_DEBUG": "/ZI /Od",
"CMAKE_CXX_STANDARD": "20",
"ZEUS_BUILD_TESTS": "ON"
}
},
{
"name": "unix_base",
"hidden": true,
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_FLAGS_DEBUG": "-g -O0 -DDEBUG",
"ZEUS_BUILD_TESTS": "ON"
}
},
{
"name": "gcc",
"displayName": "GCC",
"description": "Default build for GCC",
"inherits": "unix_base",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror"
}
},
{
"name": "clang",
"displayName": "Clang",
"description": "Default build for Clang",
"inherits": "unix_base",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-Wall -Wextra -pedantic -Werror -stdlib=libstdc++"
}
}
]
}