|
1 | 1 | { |
2 | | - "version": 6, |
3 | | - "cmakeMinimumRequired": { |
4 | | - "major": 3, |
5 | | - "minor": 25, |
6 | | - "patch": 0 |
| 2 | + "version": 6, |
| 3 | + "cmakeMinimumRequired": { |
| 4 | + "major": 3, |
| 5 | + "minor": 25, |
| 6 | + "patch": 0 |
| 7 | + }, |
| 8 | + "configurePresets": [ |
| 9 | + { |
| 10 | + "name": "windows-base", |
| 11 | + "hidden": true, |
| 12 | + "generator": "Ninja", |
| 13 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 14 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 15 | + "cacheVariables": { |
| 16 | + "CMAKE_C_COMPILER": "cl.exe", |
| 17 | + "CMAKE_CXX_COMPILER": "cl.exe" |
| 18 | + }, |
| 19 | + "condition": { |
| 20 | + "type": "equals", |
| 21 | + "lhs": "${hostSystemName}", |
| 22 | + "rhs": "Windows" |
| 23 | + }, |
| 24 | + "toolchainFile": "$env{USERPROFILE}\\tools\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake" |
7 | 25 | }, |
8 | | - "configurePresets": [ |
9 | | - { |
10 | | - "name": "windows-base", |
11 | | - "hidden": true, |
12 | | - "generator": "Ninja", |
13 | | - "binaryDir": "${sourceDir}/out/build/${presetName}", |
14 | | - "installDir": "${sourceDir}/out/install/${presetName}", |
15 | | - "cacheVariables": { |
16 | | - "CMAKE_C_COMPILER": "cl.exe", |
17 | | - "CMAKE_CXX_COMPILER": "cl.exe" |
18 | | - }, |
19 | | - "condition": { |
20 | | - "type": "equals", |
21 | | - "lhs": "${hostSystemName}", |
22 | | - "rhs": "Windows" |
23 | | - }, |
24 | | - "toolchainFile": "$env{USERPROFILE}\\tools\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake" |
25 | | - }, |
26 | | - { |
27 | | - "name": "x64-debug", |
28 | | - "displayName": "x64 Debug", |
29 | | - "inherits": "windows-base", |
30 | | - "architecture": { |
31 | | - "value": "x64", |
32 | | - "strategy": "external" |
33 | | - }, |
34 | | - "cacheVariables": { |
35 | | - "CMAKE_BUILD_TYPE": "Debug" |
36 | | - } |
37 | | - }, |
38 | | - { |
39 | | - "name": "x64-release", |
40 | | - "displayName": "x64 Release", |
41 | | - "inherits": "x64-debug", |
42 | | - "cacheVariables": { |
43 | | - "CMAKE_BUILD_TYPE": "Release" |
44 | | - } |
45 | | - }, |
46 | | - { |
47 | | - "name": "x86-debug", |
48 | | - "displayName": "x86 Debug", |
49 | | - "inherits": "windows-base", |
50 | | - "architecture": { |
51 | | - "value": "x86", |
52 | | - "strategy": "external" |
53 | | - }, |
54 | | - "cacheVariables": { |
55 | | - "CMAKE_BUILD_TYPE": "Debug" |
56 | | - } |
57 | | - }, |
58 | | - { |
59 | | - "name": "x86-release", |
60 | | - "displayName": "x86 Release", |
61 | | - "inherits": "x86-debug", |
62 | | - "cacheVariables": { |
63 | | - "CMAKE_BUILD_TYPE": "Release" |
64 | | - } |
65 | | - }, |
66 | | - { |
67 | | - "name": "linux-base", |
68 | | - "hidden": true, |
69 | | - "generator": "Ninja", |
70 | | - "binaryDir": "${sourceDir}/out/build/${presetName}", |
71 | | - "installDir": "${sourceDir}/out/install/${presetName}", |
72 | | - "cacheVariables": { |
73 | | - "CMAKE_C_COMPILER": "gcc-10", |
74 | | - "CMAKE_CXX_COMPILER": "g++-10", |
75 | | - "CMAKE_MAKE_PROGRAM": "/usr/bin/ninja" |
76 | | - }, |
77 | | - "condition": { |
78 | | - "type": "equals", |
79 | | - "lhs": "${hostSystemName}", |
80 | | - "rhs": "Linux" |
81 | | - }, |
82 | | - "vendor": { |
83 | | - "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { |
84 | | - "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" |
85 | | - } |
86 | | - }, |
87 | | - "toolchainFile": "/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake" |
88 | | - }, |
89 | | - { |
90 | | - "name": "linux-debug", |
91 | | - "displayName": "Linux Debug", |
92 | | - "inherits": "linux-base", |
93 | | - "cacheVariables": { |
94 | | - "CMAKE_BUILD_TYPE": "Debug" |
95 | | - } |
96 | | - }, |
97 | | - { |
98 | | - "name": "linux-release", |
99 | | - "displayName": "Linux Release", |
100 | | - "inherits": "linux-base", |
101 | | - "cacheVariables": { |
102 | | - "CMAKE_BUILD_TYPE": "Release" |
103 | | - } |
104 | | - }, |
105 | | - { |
106 | | - "name": "macos-debug", |
107 | | - "displayName": "macOS Debug", |
108 | | - "generator": "Ninja", |
109 | | - "binaryDir": "${sourceDir}/out/build/${presetName}", |
110 | | - "installDir": "${sourceDir}/out/install/${presetName}", |
111 | | - "cacheVariables": { |
112 | | - "CMAKE_BUILD_TYPE": "Debug" |
113 | | - }, |
114 | | - "condition": { |
115 | | - "type": "equals", |
116 | | - "lhs": "${hostSystemName}", |
117 | | - "rhs": "Darwin" |
118 | | - }, |
119 | | - "vendor": { |
120 | | - "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { |
121 | | - "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" |
122 | | - } |
123 | | - } |
| 26 | + { |
| 27 | + "name": "x64-debug", |
| 28 | + "displayName": "x64 Debug", |
| 29 | + "inherits": "windows-base", |
| 30 | + "architecture": { |
| 31 | + "value": "x64", |
| 32 | + "strategy": "external" |
| 33 | + }, |
| 34 | + "cacheVariables": { |
| 35 | + "CMAKE_BUILD_TYPE": "Debug" |
| 36 | + } |
| 37 | + }, |
| 38 | + { |
| 39 | + "name": "x64-release", |
| 40 | + "displayName": "x64 Release", |
| 41 | + "inherits": "x64-debug", |
| 42 | + "cacheVariables": { |
| 43 | + "CMAKE_BUILD_TYPE": "Release" |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "name": "x86-debug", |
| 48 | + "displayName": "x86 Debug", |
| 49 | + "inherits": "windows-base", |
| 50 | + "architecture": { |
| 51 | + "value": "x86", |
| 52 | + "strategy": "external" |
| 53 | + }, |
| 54 | + "cacheVariables": { |
| 55 | + "CMAKE_BUILD_TYPE": "Debug" |
| 56 | + } |
| 57 | + }, |
| 58 | + { |
| 59 | + "name": "x86-release", |
| 60 | + "displayName": "x86 Release", |
| 61 | + "inherits": "x86-debug", |
| 62 | + "cacheVariables": { |
| 63 | + "CMAKE_BUILD_TYPE": "Release" |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "linux-base", |
| 68 | + "hidden": true, |
| 69 | + "generator": "Ninja", |
| 70 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 71 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 72 | + "cacheVariables": { |
| 73 | + "CMAKE_C_COMPILER": "gcc-10", |
| 74 | + "CMAKE_CXX_COMPILER": "g++-10", |
| 75 | + "CMAKE_MAKE_PROGRAM": "ninja" |
| 76 | + }, |
| 77 | + "condition": { |
| 78 | + "type": "equals", |
| 79 | + "lhs": "${hostSystemName}", |
| 80 | + "rhs": "Linux" |
| 81 | + }, |
| 82 | + "vendor": { |
| 83 | + "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": { |
| 84 | + "sourceDir": "$env{HOME}/.vs/$ms{projectDirName}" |
124 | 85 | } |
125 | | - ] |
| 86 | + }, |
| 87 | + "toolchainFile": "/usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake" |
| 88 | + }, |
| 89 | + { |
| 90 | + "name": "linux-debug", |
| 91 | + "displayName": "Linux Debug", |
| 92 | + "inherits": "linux-base", |
| 93 | + "cacheVariables": { |
| 94 | + "CMAKE_BUILD_TYPE": "Debug" |
| 95 | + } |
| 96 | + }, |
| 97 | + { |
| 98 | + "name": "linux-release", |
| 99 | + "displayName": "Linux Release", |
| 100 | + "inherits": "linux-base", |
| 101 | + "cacheVariables": { |
| 102 | + "CMAKE_BUILD_TYPE": "Release" |
| 103 | + } |
| 104 | + }, |
| 105 | + { |
| 106 | + "name": "macos-base", |
| 107 | + "hidden": true, |
| 108 | + "generator": "Ninja", |
| 109 | + "binaryDir": "${sourceDir}/out/build/${presetName}", |
| 110 | + "installDir": "${sourceDir}/out/install/${presetName}", |
| 111 | + "cacheVariables": { |
| 112 | + "CMAKE_C_COMPILER": "gcc", |
| 113 | + "CMAKE_CXX_COMPILER": "g++", |
| 114 | + "CMAKE_MAKE_PROGRAM": "ninja" |
| 115 | + }, |
| 116 | + "condition": { |
| 117 | + "type": "equals", |
| 118 | + "lhs": "${hostSystemName}", |
| 119 | + "rhs": "Darwin" |
| 120 | + }, |
| 121 | + "toolchainFile": "$env{HOME}/tools/vcpkg/scripts/buildsystems/vcpkg.cmake" |
| 122 | + }, |
| 123 | + { |
| 124 | + "name": "macos-debug", |
| 125 | + "displayName": "macOS Debug", |
| 126 | + "inherits": "macos-base", |
| 127 | + "cacheVariables": { |
| 128 | + "CMAKE_BUILD_TYPE": "Debug" |
| 129 | + } |
| 130 | + }, |
| 131 | + { |
| 132 | + "name": "macos-release", |
| 133 | + "displayName": "macOS Release", |
| 134 | + "inherits": "macos-base", |
| 135 | + "cacheVariables": { |
| 136 | + "CMAKE_BUILD_TYPE": "Release" |
| 137 | + } |
| 138 | + } |
| 139 | + ] |
126 | 140 | } |
0 commit comments