Files
CMake/Tests/RunCMake/CMakePresets/GoodToolchain.json.in
T
Robert Maynard a9b968bb98 cmake-presets: Introduce toolchainFile preset option
In v3 of the presets, the `--toolchain` command line argument now
has a preset mapping.
2021-04-28 17:22:25 -04:00

31 lines
890 B
Plaintext

{
"version": 3,
"configurePresets": [
{
"name": "GoodToolchainDefault",
"generator": "@RunCMake_GENERATOR@",
"binaryDir": "${sourceDir}/build/${presetName}",
"toolchainFile": "${sourceDir}/toolchain.cmake"
},
{
"name": "GoodToolchainInherit",
"inherits": "GoodToolchainDefault",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/toolchain_bad.cmake"
}
}
},
{
"name": "GoodToolchainOverride",
"inherits": "GoodToolchainInherit",
"toolchainFile": "override_toolchain.cmake"
},
{
"name": "GoodToolchainCommandLine",
"inherits": "GoodToolchainOverride"
}
]
}