{ "version": 2, "cmakeMinimumRequired": { "major": 3, "minor": 20, "patch": 0 }, "configurePresets": [ { "name": "common", "hidden": true, "generator": "Unix Makefiles", "binaryDir": "build", "cacheVariables": { "CMAKE_EXPORT_COMPILE_COMMANDS": true } }, { "name": "dev", "displayName": "Developer config", "description": "Build with debug symbols and tests enabled", "inherits": "common", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "WITH_TESTS": true } }, { "name": "dev_gcc", "displayName": "Developer config, GCC", "description": "Build using GCC with debug symbols and tests enabled", "inherits": "dev", "cacheVariables": { "CMAKE_CXX_COMPILER": "g++" } }, { "name": "dev_clang", "displayName": "Developer config, clang", "description": "Build using clang with debug symbols and tests enabled", "inherits": "dev", "cacheVariables": { "CMAKE_CXX_COMPILER": "clang++" } }, { "name": "release", "displayName": "Release config", "description": "Build without debug symbols or tests", "inherits": "common", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "WITH_TESTS": false } } ], "testPresets": [ { "name": "default", "configurePreset": "dev", "output": { "outputOnFailure": true }, "execution": { "noTestsAction": "error", "stopOnFailure": true } } ] }