forked from comp-rob2b/dyn2b
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakePresets.json
30 lines (30 loc) · 909 Bytes
/
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
{
"version": 1,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "add-warn",
"displayName": "Additional compiler warnings",
"description": "Build using Unix Makefiles (with additional compiler warnings)",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_FLAGS": "-Wall -Wextra -pedantic"
}
},
{
"name": "math-opt",
"displayName": "Optimized math",
"description": "Optimized math (AVX & auto-vectorization) using Unix Makefiles",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_FLAGS": "-mavx -mfma -ffast-math -ftree-vectorize -ftree-vectorizer-verbose=7 -fopt-info-vec-missed -fopt-info-loop-optimized -fopt-info-vec-all"
}
}
]
}