-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakePresets.json
More file actions
130 lines (130 loc) · 3.27 KB
/
Copy pathCMakePresets.json
File metadata and controls
130 lines (130 loc) · 3.27 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
122
123
124
125
126
127
128
129
130
{
"version": 6,
"configurePresets": [
{
"name": "base",
"hidden": true,
"cacheVariables": {
"BUILD_SHARED_LIBS": "OFF"
}
},
{
"name": "dev",
"inherits": "base",
"displayName": "Developer build",
"description": "Debug or Release with compile-commands for tooling. AVX2/native tuning is applied per dev target (see examples/ and tests/, which pick /arch:AVX2 for MSVC and -march=native otherwise), so this preset is correct for MSVC, GCC, Clang and MinGW on any OS.",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "ci",
"inherits": "base",
"displayName": "CI build (MSVC/default)",
"description": "Release build without machine-specific tuning",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "ci-gcc",
"inherits": "ci",
"displayName": "CI build (GCC)",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "ci-clang",
"inherits": "ci",
"displayName": "CI build (Clang)",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "ci-float",
"inherits": "ci",
"displayName": "CI build (float / native SQP)",
"description": "Single-precision build: blast::real = float, which requires the in-house SQP solver (external NLopt is double-only).",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"BLAST_USE_DOUBLES": "OFF",
"BLAST_USE_NATIVE_SQP": "ON"
}
}
],
"buildPresets": [
{
"name": "dev-Debug",
"configurePreset": "dev",
"configuration": "Debug"
},
{"name": "dev-Release",
"configurePreset": "dev",
"configuration": "Release"
},
{
"name": "ci",
"configurePreset": "ci",
"configuration": "Release"
},
{
"name": "ci-gcc",
"configurePreset": "ci-gcc",
"configuration": "Release"
},
{
"name": "ci-clang",
"configurePreset": "ci-clang",
"configuration": "Release"
},
{
"name": "ci-float",
"configurePreset": "ci-float",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "ci",
"configurePreset": "ci",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
},
{
"name": "ci-gcc",
"configurePreset": "ci-gcc",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
},
{
"name": "ci-clang",
"configurePreset": "ci-clang",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
},
{
"name": "ci-float",
"configurePreset": "ci-float",
"configuration": "Release",
"output": {
"outputOnFailure": true
}
}
]
}