fix: Add architecture setting in the CMakePresets.json.sample
This commit is contained in:
parent
c3f6a84d66
commit
075cbfc24f
|
@ -1,22 +1,17 @@
|
||||||
{
|
{
|
||||||
"version": 2,
|
"version": 3,
|
||||||
"cmakeMinimumRequired": {
|
|
||||||
"major": 3,
|
|
||||||
"minor": 14,
|
|
||||||
"patch": 0
|
|
||||||
},
|
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "vcpkg",
|
"name": "base",
|
||||||
"hidden": true,
|
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "KiCad",
|
|
||||||
"description": "This preset is var settings for KiCad",
|
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
|
"generator": "Ninja",
|
||||||
|
"binaryDir": "${sourceDir}/build",
|
||||||
|
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"KICAD_BUILD_QA_TESTS": "OFF",
|
"KICAD_BUILD_QA_TESTS": "OFF",
|
||||||
"KICAD_BUILD_I18N": "ON",
|
"KICAD_BUILD_I18N": "ON",
|
||||||
|
@ -25,39 +20,36 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "win64",
|
"name": "win64",
|
||||||
"generator": "Ninja",
|
|
||||||
"binaryDir": "${sourceDir}/build",
|
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"KICAD_WIN32_DPI_AWARE": "ON",
|
"KICAD_WIN32_DPI_AWARE": "ON",
|
||||||
"CMAKE_INSTALL_PREFIX": "out",
|
"CMAKE_INSTALL_PREFIX": "out",
|
||||||
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb"
|
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb"
|
||||||
},
|
},
|
||||||
|
"architecture": {
|
||||||
|
"value": "x64",
|
||||||
|
"strategy": "external"
|
||||||
|
},
|
||||||
"inherits": [
|
"inherits": [
|
||||||
"vcpkg",
|
"base"
|
||||||
"KiCad"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "win64-Release",
|
"name": "x64-debug",
|
||||||
"inherits": [
|
"displayName": "x64 Debug",
|
||||||
"win64",
|
"description": "Sets debug build type and x64 arch",
|
||||||
"vcpkg",
|
"inherits": "win64",
|
||||||
"KiCad"
|
|
||||||
],
|
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "win64-Debug",
|
"name": "x64-release",
|
||||||
"inherits": [
|
"displayName": "x64 Release",
|
||||||
"win64",
|
"description": "Sets release build type",
|
||||||
"vcpkg",
|
"inherits": "win64",
|
||||||
"KiCad"
|
|
||||||
],
|
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue