-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakePresets.json
65 lines (65 loc) · 2.24 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": ".base",
"hidden": true,
"generator": "Ninja",
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"VCPKG_INSTALL_OPTIONS": "--no-print-usage"
}
},
{
"name": ".msvc-x64",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_CXX_FLAGS": "/DWIN32 /D_WINDOWS /MP /utf-8 /validate-charset /EHsc /arch:AVX /bigobj /W4 /wd4324",
"VCPKG_TARGET_TRIPLET": "x64-windows"
},
"condition": {
"lhs": "${hostSystemName}",
"type": "equals",
"rhs": "Windows"
},
"architecture": {
"value": "x64",
"strategy": "external"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x64"
}
}
},
{
"name": "msvc-x64-debug",
"displayName": "MSVC x64 Debug",
"inherits": [ ".base", ".msvc-x64" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS_DEBUG": "/MDd /Od /Gy /ZI /RTC1 /DDEBUG",
"CMAKE_EXE_LINKER_FLAGS_DEBUG": "/INCREMENTAL /DEBUG"
}
},
{
"name": "msvc-x64-release",
"displayName": "MSVC x64 Release",
"inherits": [ ".base", ".msvc-x64" ],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS_RELEASE": "/MD /O2 /Ot /Oi /Oy /Ob3 /Gy /GF /Gw /GL /GS- /GR /Zi /DNDEBUG",
"CMAKE_EXE_LINKER_FLAGS_RELEASE": "/INCREMENTAL:NO /LTCG /DEBUG:FASTLINK /OPT:REF /OPT:ICF=3"
}
}
]
}