1+ {
2+ "version" : 6 ,
3+ "configurePresets" : [
4+ {
5+ "name" : " base-linux" ,
6+ "hidden" : true ,
7+ "displayName" : " linux base preset" ,
8+ "generator" : " Ninja" ,
9+ "binaryDir" : " build-${presetName}" ,
10+ "cacheVariables" : {
11+ "CMAKE_EXE_LINKER_FLAGS" : " -fuse-ld=mold" ,
12+ "CMAKE_CXX_COMPILER_LAUNCHER" : " ccache" ,
13+ "CPM_SOURCE_CACHE" : " cpm_cache"
14+ }
15+ },
16+ {
17+ "name" : " clang-base" ,
18+ "hidden" : true ,
19+ "displayName" : " clang base preset" ,
20+ "inherits" : " base-linux" ,
21+ "cacheVariables" : {
22+ "CMAKE_CXX_COMPILER" : " clang++" ,
23+ "CMAKE_C_COMPILER" : " clang" ,
24+ "CMAKE_CXX_FLAGS" : " -Wall -Wextra -Wpedantic -Werror -Wcast-align -Wnon-virtual-dtor -Woverloaded-virtual -Wunused"
25+ }
26+ },
27+ {
28+ "name" : " clang-debug" ,
29+ "displayName" : " clang (Debug)" ,
30+ "inherits" : " clang-base" ,
31+ "cacheVariables" : {
32+ "CMAKE_BUILD_TYPE" : " Debug"
33+ }
34+ },
35+ {
36+ "name" : " clang-release" ,
37+ "displayName" : " clang (Release)" ,
38+ "inherits" : " clang-base" ,
39+ "cacheVariables" : {
40+ "CMAKE_BUILD_TYPE" : " Release"
41+ }
42+ },
43+ {
44+ "name" : " gcc-base" ,
45+ "hidden" : true ,
46+ "displayName" : " gcc base preset" ,
47+ "inherits" : " base-linux" ,
48+ "cacheVariables" : {
49+ "CMAKE_CXX_COMPILER" : " g++" ,
50+ "CMAKE_C_COMPILER" : " gcc" ,
51+ "CMAKE_CXX_FLAGS" : " -Wall -Wextra -Wpedantic -Werror -Wcast-align -Wnon-virtual-dtor -Woverloaded-virtual -Wunused"
52+ }
53+ },
54+ {
55+ "name" : " gcc-debug" ,
56+ "displayName" : " gcc (Debug)" ,
57+ "inherits" : " gcc-base" ,
58+ "cacheVariables" : {
59+ "CMAKE_BUILD_TYPE" : " Debug"
60+ }
61+ },
62+ {
63+ "name" : " gcc-release" ,
64+ "displayName" : " gcc (Release)" ,
65+ "inherits" : " gcc-base" ,
66+ "cacheVariables" : {
67+ "CMAKE_BUILD_TYPE" : " Release"
68+ }
69+ },
70+ {
71+ "name" : " base-windows" ,
72+ "displayName" : " windows base preset" ,
73+ "hidden" : true ,
74+ "generator" : " Ninja" ,
75+ "binaryDir" : " build-${presetName}" ,
76+ "architecture" : {
77+ "value" : " x64" ,
78+ "strategy" : " external"
79+ },
80+ "cacheVariables" : {
81+ "CPM_SOURCE_CACHE" : " cpm_cache" ,
82+ "CMAKE_CXX_COMPILER_LAUNCHER" : " ccache"
83+ },
84+ "vendor" : {
85+ "microsoft.com/VisualStudioSettings/CMake/1.0" : {
86+ "hostOS" : [
87+ " Windows"
88+ ]
89+ },
90+ "jetbrains.com/clion" : {
91+ "toolchain" : " Visual Studio"
92+ }
93+ }
94+ },
95+ {
96+ "name" : " msvc-base" ,
97+ "hidden" : true ,
98+ "displayName" : " msvc base preset" ,
99+ "inherits" : " base-windows" ,
100+ "cacheVariables" : {
101+ "CMAKE_CXX_COMPILER" : " cl.exe" ,
102+ "CMAKE_C_COMPILER" : " cl.exe" ,
103+ "CMAKE_CXX_FLAGS" : " /EHsc /W4 /WX /wd4267"
104+ }
105+ },
106+ {
107+ "name" : " msvc-debug" ,
108+ "displayName" : " msvc (Debug)" ,
109+ "inherits" : " msvc-base" ,
110+ "cacheVariables" : {
111+ "CMAKE_BUILD_TYPE" : " Debug"
112+ }
113+ },
114+ {
115+ "name" : " msvc-release" ,
116+ "displayName" : " msvc (Release)" ,
117+ "inherits" : " msvc-base" ,
118+ "cacheVariables" : {
119+ "CMAKE_BUILD_TYPE" : " Release"
120+ }
121+ }
122+ ]
123+ }
0 commit comments