-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakePresets.json
145 lines (145 loc) · 3.61 KB
/
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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 14,
"patch": 0
},
"configurePresets": [
{
"binaryDir": "${sourceDir}/build",
"name": "common-settings",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"TLSUV_TLSLIB": "mbedtls",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_C_EXTENSIONS": "ON",
"CMAKE_C_STANDARD": "99",
"CMAKE_C_STANDARD_REQUIRED": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "11",
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
{
"name": "flags-unix",
"hidden": true,
"cacheVariables": {
"CMAKE_C_FLAGS": "",
"CMAKE_CXX_FLAGS": ""
}
},
{
"name": "common-unix",
"hidden": true,
"inherits": [
"flags-unix"
],
"generator": "Ninja Multi-Config"
},
{
"name": "macOS-x64",
"inherits": [
"common-settings",
"common-unix"
]
},
{
"name": "macOS-arm64",
"inherits": [
"common-settings",
"common-unix"
],
"cacheVariables": {
"VCPKG_TARGET_ARCHITECTURE": "arm64",
"VCPKG_TARGET_TRIPLET": "arm64-osx",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/macOS-arm64.cmake"
}
},
{
"name": "ios-arm64",
"inherits": [
"common-settings",
"common-unix"
],
"cacheVariables": {
"VCPKG_TARGET_ARCHITECTURE": "arm64",
"VCPKG_TARGET_TRIPLET": "arm64-osx",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/iOS-arm64.cmake"
}
},
{
"name": "linux-x64",
"inherits": [
"common-settings",
"common-unix"
]
},
{
"name": "linux-arm64",
"inherits": [
"common-settings",
"common-unix"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-linux",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Linux-arm64.cmake"
}
},
{
"name": "linux-arm",
"inherits": [
"common-settings",
"common-unix"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm-linux",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Linux-arm.cmake"
}
},
{
"name": "common-windows",
"description": "Note that all the flags after /W4 are required for MSVC to conform to the language standard",
"hidden": true,
"cacheVariables": {
"CMAKE_C_FLAGS": "/utf-8 /W4 /permissive- /volatile:iso /Zc:preprocessor",
"CMAKE_CXX_FLAGS": "/utf-8 /W4 /permissive- /volatile:iso /Zc:preprocessor /Zc:__cplusplus /Zc:externConstexpr /Zc:throwingNew /EHsc"
},
"generator": "Visual Studio 17 2022"
},
{
"name": "win64",
"inherits": [
"common-settings",
"common-windows"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static-md"
}
},
{
"name": "win32",
"inherits": [
"common-settings",
"common-windows"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows-static-md"
},
"architecture": "Win32"
},
{
"name": "ci-windows-arm64",
"inherits": [
"common-settings",
"common-windows"
],
"architecture": "ARM64",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows-static-md",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/toolchains/Windows-arm64.cmake"
}
}
]
}