-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
45 lines (45 loc) · 1.47 KB
/
Copy pathCMakePresets.json
File metadata and controls
45 lines (45 loc) · 1.47 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
{
"version": 5,
"configurePresets": [
{
"name": "native-gnu-x86_64",
"displayName": "GNU native build for x86_64",
"description": "Use -march=native with GNU compilers on x86_64 architecture.",
"cacheVariables": {
"CMAKE_C_FLAGS": "$penv{CFLAGS} -march=native",
"CMAKE_CXX_FLAGS": "$penv{CXXFLAGS} -march=native",
"CMAKE_Fortran_FLAGS": "$penv{FFLAGS} -march=native"
}
},
{
"name": "native-gnu-arm64",
"displayName": "GNU native build for Arm64",
"description": "Use -mcpu=native with GNU compilers on Arm64/AArch64, including GNU/Linux and Apple Silicon.",
"cacheVariables": {
"CMAKE_C_FLAGS": "$penv{CFLAGS} -mcpu=native",
"CMAKE_CXX_FLAGS": "$penv{CXXFLAGS} -mcpu=native",
"CMAKE_Fortran_FLAGS": "$penv{FFLAGS} -mcpu=native"
}
},
{
"name": "native-intel",
"displayName": "Intel native build",
"description": "Use -xHOST with Intel compilers.",
"cacheVariables": {
"CMAKE_C_FLAGS": "$penv{CFLAGS} -xHOST",
"CMAKE_CXX_FLAGS": "$penv{CXXFLAGS} -xHOST",
"CMAKE_Fortran_FLAGS": "$penv{FFLAGS} -xHOST"
}
},
{
"name": "none",
"displayName": "No preset",
"description": "Use parent environment without any preset.",
"cacheVariables": {
"CMAKE_C_FLAGS": "$penv{CFLAGS}",
"CMAKE_CXX_FLAGS": "$penv{CXXFLAGS}",
"CMAKE_Fortran_FLAGS": "$penv{FFLAGS}"
}
}
]
}