-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
121 lines (121 loc) · 9.82 KB
/
CMakePresets.json
File metadata and controls
121 lines (121 loc) · 9.82 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"version": 6,
"configurePresets": [
{
"name": "common",
"hidden": true,
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_VERBOSE_MAKEFILE": "OFF"
}
},
{
"name": "windows-common",
"hidden": true,
"inherits": ["common"],
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_SYSTEM_VERSION": "10.0",
"PEDANTIC_COMPILER": "ON",
"PEDANTIC_COMPILER_WERROR": "ON"
}
},
{
"name": "windows-cl-common",
"hidden": true,
"inherits": ["windows-common"],
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl"
}
},
{ "name": "windows-cl-debug", "inherits": ["windows-cl-common"], "displayName": "Windows - MSVC CL - Debug" },
{ "name": "windows-cl-release", "inherits": ["windows-cl-common"], "displayName": "Windows - MSVC CL - Release" },
{
"name": "windows-clangcl-common",
"hidden": true,
"inherits": ["windows-common"],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang-cl",
"CMAKE_C_COMPILER": "clang-cl"
}
},
{ "name": "windows-clangcl-debug", "inherits": ["windows-clangcl-common"], "displayName": "Windows - MSVC ClangCL - Debug", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } },
{ "name": "windows-clangcl-release","inherits": ["windows-clangcl-common"], "displayName": "Windows - MSVC ClangCL - Release", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } },
{ "name": "linux-common", "hidden": true, "inherits": ["common"], "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" } },
{ "name": "macos-common", "hidden": true, "inherits": ["common"], "condition": { "lhs": "${hostSystemName}", "type": "equals", "rhs": "Darwin" } },
{ "name": "debug", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } },
{ "name": "release", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "RelWithDebInfo" } },
{ "name": "pedantic", "hidden": true, "cacheVariables": { "PEDANTIC_COMPILER": "ON", "PEDANTIC_COMPILER_WERROR": "ON" } },
{ "name": "asan-ubsan", "hidden": true, "cacheVariables": { "ENABLE_SANITIZER_ADDRESS": "ON", "ENABLE_SANITIZER_UNDEFINED": "ON" } },
{ "name": "tsan", "hidden": true, "cacheVariables": { "ENABLE_SANITIZER_THREAD": "ON" } },
{ "name": "coverage", "hidden": true, "cacheVariables": { "ENABLE_COVERAGE": "ON" } },
{ "name": "linux-common-release", "hidden": true, "inherits": "release", "cacheVariables": { "CMAKE_INSTALL_PREFIX": "/usr/local" } },
{ "name": "linux-clang", "hidden": true, "inherits": "linux-common", "cacheVariables": { "CMAKE_CXX_COMPILER": "clang++" } },
{ "name": "linux-gcc", "hidden": true, "inherits": "linux-common", "cacheVariables": { "CMAKE_CXX_COMPILER": "g++" } },
{ "name": "linux-clang-release", "displayName": "Linux (Clang) Release", "inherits": ["linux-clang", "linux-common-release"] },
{ "name": "linux-clang-debug", "displayName": "Linux (Clang) Debug", "inherits": ["linux-clang", "debug", "pedantic", "asan-ubsan"], "cacheVariables": { "ENABLE_TIDY": "ON" } },
{ "name": "linux-gcc-release", "displayName": "Linux (GCC) Release", "inherits": ["linux-gcc", "linux-common-release"] },
{ "name": "linux-gcc-debug", "displayName": "Linux (GCC) Debug", "inherits": ["linux-gcc", "debug", "pedantic"] },
{ "name": "linux-clang-asan-ubsan", "displayName": "Linux (Clang) ASan+UBSan", "inherits": ["linux-clang", "debug", "asan-ubsan"] },
{ "name": "linux-clang-tsan", "displayName": "Linux (Clang) ThreadSanitizer", "inherits": ["linux-clang", "debug", "tsan"] },
{ "name": "linux-clang-coverage", "displayName": "Linux (Clang) Coverage", "inherits": ["linux-clang", "debug", "coverage"] },
{ "name": "linux-gcc-coverage", "displayName": "Linux (GCC) Coverage", "inherits": ["linux-gcc", "debug", "coverage"] },
{ "name": "macos-release", "displayName": "MacOS Release", "inherits": ["macos-common", "release"] },
{ "name": "macos-debug", "displayName": "MacOS Debug", "inherits": ["macos-common", "debug"] }
],
"buildPresets": [
{ "name": "windows-cl-debug", "displayName": "Windows - MSVC CL - Debug", "configurePreset": "windows-cl-debug", "configuration": "Debug" },
{ "name": "windows-cl-release", "displayName": "Windows - MSVC CL - Release", "configurePreset": "windows-cl-release", "configuration": "Release" },
{ "name": "windows-clangcl-debug", "displayName": "Windows - MSVC ClangCL - Debug", "configurePreset": "windows-clangcl-debug", "configuration": "Debug" },
{ "name": "windows-clangcl-release", "displayName": "Windows - MSVC ClangCL - Release", "configurePreset": "windows-clangcl-release", "configuration": "Release" },
{ "name": "linux-clang-debug", "displayName": "Linux - Clang - Debug", "configurePreset": "linux-clang-debug" },
{ "name": "linux-clang-release", "displayName": "Linux - Clang - RelWithDebInfo", "configurePreset": "linux-clang-release" },
{ "name": "linux-gcc-debug", "displayName": "Linux - GCC - Debug", "configurePreset": "linux-gcc-debug" },
{ "name": "linux-gcc-release", "displayName": "Linux - GCC - RelWithDebInfo", "configurePreset": "linux-gcc-release" },
{ "name": "macos-debug", "displayName": "MacOS - Debug", "configurePreset": "macos-debug" },
{ "name": "macos-release", "displayName": "MacOS - RelWithDebInfo", "configurePreset": "macos-release" },
{ "name": "linux-clang-asan-ubsan", "displayName": "Linux - Clang - ASan+UBSan", "configurePreset": "linux-clang-asan-ubsan" },
{ "name": "linux-clang-tsan", "displayName": "Linux - Clang - ThreadSanitizer", "configurePreset": "linux-clang-tsan" },
{ "name": "linux-clang-coverage", "displayName": "Linux - Clang - Coverage", "configurePreset": "linux-clang-coverage" },
{ "name": "linux-gcc-coverage", "displayName": "Linux - GCC - Coverage", "configurePreset": "linux-gcc-coverage" }
],
"testPresets": [
{ "name": "windows-cl-debug", "configurePreset": "windows-cl-debug", "configuration": "Debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "windows-cl-release", "configurePreset": "windows-cl-release", "configuration": "Release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "windows-clangcl-debug", "configurePreset": "windows-clangcl-debug", "configuration": "Debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "windows-clangcl-release", "configurePreset": "windows-clangcl-release", "configuration": "Release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-gcc-debug", "configurePreset": "linux-gcc-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-gcc-release", "configurePreset": "linux-gcc-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-clang-debug", "configurePreset": "linux-clang-debug", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-clang-release", "configurePreset": "linux-clang-release", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-clang-asan-ubsan", "configurePreset": "linux-clang-asan-ubsan", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-clang-tsan", "configurePreset": "linux-clang-tsan", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-clang-coverage", "configurePreset": "linux-clang-coverage", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } },
{ "name": "linux-gcc-coverage", "configurePreset": "linux-gcc-coverage", "output": {"outputOnFailure": true}, "execution": { "noTestsAction": "error", "stopOnFailure": true } }
],
"packagePresets": [
{
"name": "linux-gcc-debug",
"packageName": "Lightweight",
"packageDirectory": "${sourceDir}/out/package/linux-gcc-debug",
"configurePreset": "linux-gcc-debug",
"generators": [ "TGZ" ]
},
{
"name": "linux-gcc-release",
"packageName": "Lightweight",
"packageDirectory": "${sourceDir}/out/package/linux-gcc-debug",
"configurePreset": "linux-gcc-release",
"generators": [ "TGZ" ]
}
]
}