-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
87 lines (87 loc) · 2.6 KB
/
CMakePresets.json
File metadata and controls
87 lines (87 loc) · 2.6 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"version": 4,
"cmakeMinimumRequired": {
"major": 4,
"minor": 0,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Conan Debug Build",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/Debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/Debug/generators/conan_toolchain.cmake",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Werror -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_DEBUG -g -O0 -fprofile-arcs -ftest-coverage -fprofile-update=atomic -fsanitize=address -fno-omit-frame-pointer",
"CMAKE_EXE_LINKER_FLAGS": "-fsanitize=address --coverage",
"CMAKE_SHARED_LINKER_FLAGS": "-fsanitize=address --coverage"
}
},
{
"name": "release",
"displayName": "Conan Release Build",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/Release/generators/conan_toolchain.cmake",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Werror -O3 -flto -march=native -ffast-math -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO"
}
},
{
"name": "superfast",
"description": "-Ofast removes some IEEE compliance rules, -fomit-frame-pointer hurts profiling, -fno-exceptions and -fno-rtti need more consideration, -funsafe-math-optimizations speaks for itself",
"inherits": "release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/build/Release/generators/conan_toolchain.cmake",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Werror -Ofast -flto -march=native -ffast-math -DSPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_INFO"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug",
"jobs": 0
},
{
"name": "release",
"configurePreset": "release",
"jobs": 0
},
{
"name": "superfast",
"configurePreset": "superfast",
"jobs": 0
}
],
"testPresets": [
{
"name": "debug",
"configurePreset": "debug",
"output": {
"outputOnFailure": true
}
},
{
"name": "release",
"configurePreset": "release",
"output": {
"outputOnFailure": true
}
},
{
"name": "superfast",
"configurePreset": "superfast",
"output": {
"outputOnFailure": true
}
}
]
}