66 "patch" : 0
77 },
88 "configurePresets" : [
9- {
10- "name" : " ninja-debug-gcc" ,
11- "displayName" : " Ninja+GCC Configure Settings for Debug configuration" ,
12- "description" : " Sets build and install directories" ,
13- "binaryDir" : " ${sourceDir}/debug" ,
14- "generator" : " Ninja" ,
15- "cacheVariables" : {
16- "CMAKE_BUILD_TYPE" : " Debug" ,
17- "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/out" ,
18- "CMAKE_C_COMPILER" : " gcc" ,
19- "CMAKE_CXX_COMPILER" : " g++"
20- }
21- },
22- {
23- "name" : " ninja-debug-clang" ,
24- "displayName" : " Ninja+Clang Configure Settings for Debug configuration" ,
25- "description" : " Sets build and install directories" ,
26- "binaryDir" : " ${sourceDir}/debug" ,
27- "generator" : " Ninja" ,
28- "cacheVariables" : {
29- "CMAKE_BUILD_TYPE" : " Debug" ,
30- "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/out" ,
31- "CMAKE_C_COMPILER" : " clang" ,
32- "CMAKE_CXX_COMPILER" : " clang++"
33- }
34- },
35- {
36- "name" : " ninja-release-clang" ,
37- "displayName" : " Ninja+Clang Configure Settings" ,
38- "description" : " Sets build and install directories" ,
39- "binaryDir" : " ${sourceDir}/release" ,
40- "generator" : " Ninja" ,
41- "cacheVariables" : {
42- "CMAKE_BUILD_TYPE" : " Release" ,
43- "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/out" ,
44- "CMAKE_C_COMPILER" : " clang" ,
45- "CMAKE_CXX_COMPILER" : " clang++"
46- }
47- },
48- {
49- "name" : " ninja-release-gcc" ,
50- "displayName" : " Ninja+GCC Configure Settings" ,
51- "description" : " Sets build and install directories" ,
52- "binaryDir" : " ${sourceDir}/release" ,
53- "generator" : " Ninja" ,
54- "cacheVariables" : {
55- "CMAKE_BUILD_TYPE" : " Release" ,
56- "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/out" ,
57- "CMAKE_C_COMPILER" : " gcc" ,
58- "CMAKE_CXX_COMPILER" : " g++"
59- }
9+ {
10+ "name" : " default" ,
11+ "displayName" : " Default Config" ,
12+ "description" : " Default build using Ninja generator and with vcpkg toolchain" ,
13+ "generator" : " Ninja" ,
14+ "binaryDir" : " ${sourceDir}/build" ,
15+ "cacheVariables" : {
16+ "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/bin"
17+ }
18+ },
19+ {
20+ "name" : " msbuild-default" ,
21+ "inherits" : " default" ,
22+ "displayName" : " MSBuild Configure Settings" ,
23+ "description" : " Configure with VS generators" ,
24+ "generator" : " Visual Studio 17 2022" ,
25+ "architecture" : {
26+ "strategy" : " set" ,
27+ "value" : " x64"
6028 },
61- {
62- "name" : " ninja-release-clang" ,
63- "displayName" : " Ninja+Clang Configure Settings" ,
64- "description" : " Sets build and install directories" ,
65- "binaryDir" : " ${sourceDir}/release" ,
66- "generator" : " Ninja" ,
67- "cacheVariables" : {
68- "CMAKE_BUILD_TYPE" : " Release" ,
69- "CMAKE_INSTALL_PREFIX" : " ${sourceDir}/bin" ,
70- "CMAKE_C_COMPILER" : " clang" ,
71- "CMAKE_CXX_COMPILER" : " clang++"
29+ "vendor" : {
30+ "microsoft.com/VisualStudioSettings/CMake/1.0" : {
31+ "hostOS" : [ " Windows" ]
7232 }
73- },
74- {
75- "name" : " msbuild-vcpkg" ,
76- "displayName" : " MSBuild (vcpkg toolchain) Configure Settings" ,
77- "description" : " Configure with VS generators and with vcpkg toolchain" ,
78- "binaryDir" : " ${sourceDir}/msbuild" ,
79- "generator" : " Visual Studio 17 2022" ,
80- "architecture" : {
81- "strategy" : " set" ,
82- "value" : " x64"
83- },
84- "cacheVariables" : {
85- "CMAKE_TOOLCHAIN_FILE" : {
86- "type" : " FILEPATH" ,
87- "value" : " $env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
88- }
33+ }
34+ },
35+ {
36+ "name" : " msbuild-clang" ,
37+ "inherits" : " msbuild-default" ,
38+ "displayName" : " MSBuild Configure Settings (ClangCl)" ,
39+ "description" : " Configure with VS generators and ClangCl compiler" ,
40+ "toolset" : " ClangCL" ,
41+ "vendor" : {
42+ "microsoft.com/VisualStudioSettings/CMake/1.0" : {
43+ "hostOS" : [ " Windows" ],
44+ "intelliSenseMode" : " windows-clang-x64"
8945 }
9046 }
47+ },
48+ {
49+ "name" : " ninja-gcc" ,
50+ "inherits" : " default" ,
51+ "displayName" : " Ninja Configure Settings (GCC)" ,
52+ "description" : " Configure with Ninja generator and GCC-11 compiler" ,
53+ "cacheVariables" : {
54+ "CMAKE_C_COMPILER" : " gcc-11" ,
55+ "CMAKE_CXX_COMPILER" : " g++-11"
56+ }
57+ },
58+ {
59+ "name" : " ninja-clang" ,
60+ "inherits" : " default" ,
61+ "displayName" : " Ninja Configure Settings (Clang)" ,
62+ "description" : " Configure with Ninja generator and Clang-15 compiler" ,
63+ "cacheVariables" : {
64+ "CMAKE_C_COMPILER" : " clang-15" ,
65+ "CMAKE_CXX_COMPILER" : " clang++-15"
66+ }
67+ }
9168 ],
9269 "buildPresets" : [
93- {
94- "name" : " ninja+debug+gcc" ,
95- "configurePreset" : " ninja-debug-gcc" ,
96- "displayName" : " Build Debug with Ninja" ,
97- "description" : " Build Debug with Ninja (gcc)"
98- },
99- {
100- "name" : " ninja+debug+clang" ,
101- "configurePreset" : " ninja-debug-clang" ,
102- "displayName" : " Build Debug with Ninja" ,
103- "description" : " Build Debug with Ninja (clang)"
104- },
105- {
106- "name" : " ninja+gcc" ,
107- "configurePreset" : " ninja-release-gcc" ,
108- "displayName" : " Build with Ninja" ,
109- "description" : " Build with Ninja (gcc)"
110- },
111- {
112- "name" : " ninja+clang" ,
113- "configurePreset" : " ninja-release-clang" ,
114- "displayName" : " Build with Ninja" ,
115- "description" : " Build with Ninja (clang)"
116- },
117- {
118- "name" : " msbuild-vcpkg" ,
119- "configurePreset" : " msbuild-vcpkg" ,
120- "displayName" : " Build MSBuild" ,
121- "description" : " Build with MSBuild (VS)"
122- }
70+ {
71+ "name" : " msvc-dbg" ,
72+ "configurePreset" : " msbuild-default" ,
73+ "displayName" : " Debug" ,
74+ "configuration" : " Debug" ,
75+ "description" : " Disable optimizations - include debug information"
76+ },
77+ {
78+ "name" : " msvc" ,
79+ "configurePreset" : " msbuild-default" ,
80+ "displayName" : " Release" ,
81+ "configuration" : " Release" ,
82+ "description" : " Optimize for speed - exclude debug information"
83+ },
84+ {
85+ "name" : " clang-cl-dbg" ,
86+ "configurePreset" : " msbuild-clang" ,
87+ "displayName" : " Debug" ,
88+ "configuration" : " Debug" ,
89+ "description" : " Disable optimizations - include debug information"
90+ },
91+ {
92+ "name" : " clang-cl" ,
93+ "configurePreset" : " msbuild-clang" ,
94+ "displayName" : " Release" ,
95+ "configuration" : " Release" ,
96+ "description" : " Optimize for speed - exclude debug information"
97+ },
98+ {
99+ "name" : " gcc-dbg" ,
100+ "configurePreset" : " ninja-gcc" ,
101+ "displayName" : " Debug" ,
102+ "configuration" : " Debug" ,
103+ "description" : " Disable optimizations - include debug information"
104+ },
105+ {
106+ "name" : " gcc" ,
107+ "configurePreset" : " ninja-gcc" ,
108+ "displayName" : " Release" ,
109+ "configuration" : " Release" ,
110+ "description" : " Optimize for speed - exclude debug information"
111+ },
112+ {
113+ "name" : " clang-dbg" ,
114+ "configurePreset" : " ninja-clang" ,
115+ "displayName" : " Debug" ,
116+ "configuration" : " Debug" ,
117+ "description" : " Disable optimizations - include debug information"
118+ },
119+ {
120+ "name" : " clang" ,
121+ "configurePreset" : " ninja-clang" ,
122+ "displayName" : " Release" ,
123+ "configuration" : " Release" ,
124+ "description" : " Optimize for speed - exclude debug information"
125+ }
123126 ]
124127}
0 commit comments