59 lines
1.3 KiB
JSON
59 lines
1.3 KiB
JSON
{
|
|
"version": 6,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 20,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "Default (system compiler)",
|
|
"generator": "Unix Makefiles",
|
|
"binaryDir": "${sourceDir}/build",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"COURSE_ENABLE_CONTRACTS": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "gcc26-contracts",
|
|
"displayName": "GCC 16 + C++26 contracts (recommended)",
|
|
"generator": "Unix Makefiles",
|
|
"binaryDir": "${sourceDir}/build-gcc26",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"CMAKE_C_COMPILER": "/opt/homebrew/bin/gcc-16",
|
|
"CMAKE_CXX_COMPILER": "/opt/homebrew/bin/g++-16",
|
|
"COURSE_ENABLE_CONTRACTS": "ON"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "default",
|
|
"configurePreset": "default"
|
|
},
|
|
{
|
|
"name": "gcc26-contracts",
|
|
"configurePreset": "gcc26-contracts"
|
|
}
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "default",
|
|
"configurePreset": "default",
|
|
"output": {
|
|
"outputOnFailure": true
|
|
}
|
|
},
|
|
{
|
|
"name": "gcc26-contracts",
|
|
"configurePreset": "gcc26-contracts",
|
|
"output": {
|
|
"outputOnFailure": true
|
|
}
|
|
}
|
|
]
|
|
}
|