Skip to content

Commit 15fe12b

Browse files
committed
Add CMakeSettings.json for Visual Studio 2022
1 parent b8420ee commit 15fe12b

1 file changed

Lines changed: 126 additions & 0 deletions

File tree

CMakeSettings.json

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "x86-Debug",
5+
"generator": "Visual Studio 17 2022",
6+
"configurationType": "Debug",
7+
"buildRoot": "${projectDir}\\out\\build\\${name}",
8+
"installRoot": "${projectDir}\\out\\install\\${name}",
9+
"cmakeCommandArgs": "",
10+
"buildCommandArgs": "",
11+
"ctestCommandArgs": "",
12+
"inheritEnvironments": [ "msvc_x86" ],
13+
"variables": [
14+
{
15+
"name": "DEBUG_CMAKE",
16+
"value": "True",
17+
"type": "BOOL"
18+
},
19+
{
20+
"name": "USE_EXTERNAL",
21+
"value": "True",
22+
"type": "BOOL"
23+
}
24+
]
25+
},
26+
{
27+
"name": "x86-Release",
28+
"generator": "Ninja",
29+
"configurationType": "RelWithDebInfo",
30+
"buildRoot": "${projectDir}\\out\\build\\${name}",
31+
"installRoot": "${projectDir}\\out\\install\\${name}",
32+
"cmakeCommandArgs": "",
33+
"buildCommandArgs": "",
34+
"ctestCommandArgs": "",
35+
"inheritEnvironments": [ "msvc_x86" ],
36+
"variables": [
37+
{
38+
"name": "DEBUG_CMAKE",
39+
"value": "True",
40+
"type": "BOOL"
41+
},
42+
{
43+
"name": "USE_EXTERNAL",
44+
"value": "True",
45+
"type": "BOOL"
46+
},
47+
{
48+
"name": "CMAKE_C_FLAGS_RELWITHDEBINFO",
49+
"value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG",
50+
"type": "STRING"
51+
},
52+
{
53+
"name": "CMAKE_CXX_FLAGS_RELWITHDEBINFO",
54+
"value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG",
55+
"type": "STRING"
56+
},
57+
{
58+
"name": "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",
59+
"value": "/debug /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF",
60+
"type": "STRING"
61+
}
62+
]
63+
},
64+
{
65+
"name": "x64-Debug",
66+
"generator": "Visual Studio 17 2022 Win64",
67+
"configurationType": "Debug",
68+
"buildRoot": "${projectDir}\\out\\build\\${name}",
69+
"installRoot": "${projectDir}\\out\\install\\${name}",
70+
"cmakeCommandArgs": "",
71+
"buildCommandArgs": "",
72+
"ctestCommandArgs": "",
73+
"inheritEnvironments": [ "msvc_x64_x64" ],
74+
"variables": [
75+
{
76+
"name": "DEBUG_CMAKE",
77+
"value": "True",
78+
"type": "BOOL"
79+
},
80+
{
81+
"name": "USE_EXTERNAL",
82+
"value": "True",
83+
"type": "BOOL"
84+
}
85+
]
86+
},
87+
{
88+
"name": "x64-Release",
89+
"generator": "Ninja",
90+
"configurationType": "RelWithDebInfo",
91+
"buildRoot": "${projectDir}\\out\\build\\${name}",
92+
"installRoot": "${projectDir}\\out\\install\\${name}",
93+
"cmakeCommandArgs": "",
94+
"buildCommandArgs": "",
95+
"ctestCommandArgs": "",
96+
"inheritEnvironments": [ "msvc_x64_x64" ],
97+
"variables": [
98+
{
99+
"name": "DEBUG_CMAKE",
100+
"value": "True",
101+
"type": "BOOL"
102+
},
103+
{
104+
"name": "USE_EXTERNAL",
105+
"value": "True",
106+
"type": "BOOL"
107+
},
108+
{
109+
"name": "CMAKE_C_FLAGS_RELWITHDEBINFO",
110+
"value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG",
111+
"type": "STRING"
112+
},
113+
{
114+
"name": "CMAKE_CXX_FLAGS_RELWITHDEBINFO",
115+
"value": "/MT /GL /Zi /O2 /Ob1 /DNDEBUG",
116+
"type": "STRING"
117+
},
118+
{
119+
"name": "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO",
120+
"value": "/debug /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF",
121+
"type": "STRING"
122+
}
123+
]
124+
}
125+
]
126+
}

0 commit comments

Comments
 (0)