-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
45 lines (45 loc) · 1.83 KB
/
CMakePresets.json
File metadata and controls
45 lines (45 loc) · 1.83 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
{
"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"
}
}
],
"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"
]
}
]
}