-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
181 lines (181 loc) · 4.78 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "dynl-dev",
"hidden": true,
"cacheVariables": {
"DYNLOAD_DEVELOP": true
}
},
{
"name": "dynl-headeronly",
"hidden": true,
"cacheVariables": {
"DYNLOAD_HEADERONLY": true
}
},
{
"name": "msvc-warnings",
"hidden": true,
"cacheVariables": {
"DYNL_COMPILE_FLAGS": "/W4;/w14242;/w14254;/w14263;/w14265;/w14287;/we4289;/w14296;/w14311;/w14545;/w14546;/w14547;/w14549;/w14555;/w14619;/w14640;/w14826;/w14905;/w14906;/w14928;/permissive-;/wd4265"
}
},
{
"name": "clang-warnings",
"hidden": true,
"cacheVariables": {
"DYNL_COMPILE_FLAGS": "-Wall;-Wextra;-Wpedantic;-Wno-unknown-attributes"
}
},
{
"name": "gcc-warnings",
"hidden": true,
"cacheVariables": {
"DYNL_COMPILE_FLAGS": "-Wall;-Wextra;-Wpedantic"
}
},
{
"name": "windows-test-include",
"hidden": true,
"cacheVariables": {
"DYNLOAD_TEST_EXPORTS": "${sourceDir}/build/clang-release/tests/cross_tests/dynload.tests.cross_tests.export_this.dll;${sourceDir}/build/msvc22-debug/tests/cross_tests/dynload.tests.cross_tests.export_this.dll;${sourceDir}/build/msvc22-relwithdebinfo/tests/cross_tests/dynload.tests.cross_tests.export_this.dll"
}
},
{
"name": "linux-test-include",
"hidden": true,
"cacheVariables": {
"DYNLOAD_TEST_EXPORTS": "${sourceDir}/build/clang-release/tests/cross_tests/libdynload.tests.cross_tests.export_this.so;${sourceDir}/build/gcc-release/tests/cross_tests/libdynload.tests.cross_tests.export_this.so"
}
},
{
"name": "msvc-base",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"inherits": [ "msvc-warnings", "dynl-dev", "windows-test-include" ],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "cl",
"CMAKE_C_COMPILER": "cl"
},
"generator": "Ninja"
},
{
"name": "clang-base",
"hidden": true,
"inherits": [ "clang-warnings", "dynl-dev" ],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_C_COMPILER": "clang"
},
"generator": "Ninja"
},
{
"name": "gcc-base",
"hidden": true,
"inherits": [ "gcc-warnings", "dynl-dev", "linux-test-include" ],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc"
},
"generator": "Ninja"
},
{
"name": "crosscompile-base",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"generator": "Ninja"
},
{
"name": "msvc22-debug",
"binaryDir": "${sourceDir}/build/msvc22-debug",
"inherits": [
"msvc-base"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"installDir": "${sourceDir}/install/msvc22-debug"
},
{
"name": "msvc22-hh-debug",
"binaryDir": "${sourceDir}/build/msvc22-hh-debug",
"installDir": "${sourceDir}/install/msvc22-hh-debug",
"inherits": [
"msvc-base",
"dynl-headeronly"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "msvc22-reldeb",
"binaryDir": "${sourceDir}/build/msvc22-relwithdebinfo",
"inherits": [
"msvc-base"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
},
"installDir": "${sourceDir}/install/msvc22-relwithdebinfo"
},
{
"name": "clang-release",
"inherits": [
"clang-base"
],
"binaryDir": "${sourceDir}/build/clang-release",
"installDir": "${sourceDir}/install/clang-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "clang-hh-release",
"inherits": [
"clang-base",
"dynl-headeronly"
],
"binaryDir": "${sourceDir}/build/clang-hh-release",
"installDir": "${sourceDir}/install/clang-hh-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "gcc-release",
"inherits": [
"gcc-base"
],
"binaryDir": "${sourceDir}/build/gcc-release",
"installDir": "${sourceDir}/install/gcc-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "gcc-hh-release",
"inherits": [
"gcc-base"
],
"binaryDir": "${sourceDir}/build/gcc-hh-release",
"installDir": "${sourceDir}/install/gcc-hh-release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
]
}