-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
106 lines (106 loc) · 4.44 KB
/
CMakePresets.json
File metadata and controls
106 lines (106 loc) · 4.44 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"version": 8,
"configurePresets": [
{
"name": "vsbuild",
"displayName": "Visual Studio Professional 2022 Release - amd64",
"description": "Using compilers for Visual Studio 17 2022 (x64 architecture)",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_C_FLAGS_RELWITHDEBINFO": "/Zi /O2 /Ob1 /DNDEBUG /GL",
"CMAKE_CXX_FLAGS_RELWITHDEBINFO": "/Zi /O2 /Ob1 /DNDEBUG /GL",
"CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO": "/DEBUG /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF",
"CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO": "/DEBUG /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF",
"CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO": "/DEBUG /INCREMENTAL:NO /LTCG /OPT:REF /OPT:ICF"
}
},
{
"name": "vsbuild-x86",
"displayName": "Visual Studio 2022 - x86",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "Win32",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "x86-windows"
}
},
{
"name": "vsbuild-arm64",
"displayName": "Visual Studio 2022 - ARM64",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "ARM64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "arm64-windows"
}
},
{
"name": "vsbuild-arm64ec",
"displayName": "Visual Studio 2022 - ARM64EC",
"description": "ARM64EC build. Note: cppwinrt vcpkg port may not support arm64ec-windows triplet.",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "ARM64EC",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"VCPKG_TARGET_TRIPLET": "arm64ec-windows"
}
}
],
"buildPresets": [
{
"name": "vsbuild-debug",
"displayName": "VS 2022 amd64 Debug",
"configurePreset": "vsbuild",
"configuration": "Debug",
"nativeToolOptions": [
"/maxcpucount"
]
},
{
"name": "vsbuild-release",
"displayName": "VS 2022 amd64 Release",
"configurePreset": "vsbuild",
"configuration": "RelWithDebInfo",
"nativeToolOptions": [
"/maxcpucount"
]
},
{
"name": "vsbuild-x86-debug",
"displayName": "VS 2022 x86 Debug",
"configurePreset": "vsbuild-x86",
"configuration": "Debug",
"nativeToolOptions": [ "/maxcpucount" ]
},
{
"name": "vsbuild-arm64-debug",
"displayName": "VS 2022 ARM64 Debug",
"configurePreset": "vsbuild-arm64",
"configuration": "Debug",
"nativeToolOptions": [ "/maxcpucount" ]
},
{
"name": "vsbuild-arm64ec-debug",
"displayName": "VS 2022 ARM64EC Debug",
"configurePreset": "vsbuild-arm64ec",
"configuration": "Debug",
"nativeToolOptions": [ "/maxcpucount" ]
}
]
}