-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCMakeUserPresets.json
70 lines (70 loc) · 1.89 KB
/
CMakeUserPresets.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
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
{
"version": 2,
"configurePresets": [
{
"name": "default",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"hidden": true,
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "./vendor/vcpkg/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "windows",
"inherits": "default",
"generator": "Ninja",
"displayName": "windows-msvc",
"description": "Build using MSVC compiler",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows-static"
}
},
{
"name": "windows-mingw",
"hidden": true,
"inherits": "default",
"generator": "Ninja",
"displayName": "windows-mingw",
"description": "Build using g++ compiler",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-mingw-static",
"CMAKE_CXX_STANDARD": "17",
"CMAKE_C_STANDARD": "23",
"CMAKE_CXX_FLAGS": "-static-libstdc++ -static-libgcc -static -lpthread"
}
},
{
"inherits": "windows-mingw",
"name": "windows-mingw-release",
"displayName": "windows-mingw-release",
"description": "mingw windows release build.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"inherits": "windows-mingw",
"name": "windows-mingw-debug",
"displayName": "windows-mingw-debug",
"description": "mingw windows debug build.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "linux",
"inherits": "default",
"generator": "Unix Makefiles",
"displayName": "linux-x86",
"description": "Default build for Linux",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-linux"
}
}
]
}