{ "version": 2, "cmakeMinimumRequired": { "major": 3, "minor": 20, "patch": 0 }, "configurePresets": [ { "name": "use-ninja", "hidden": true, "generator": "Ninja" }, { "name": "default-build-dir", "hidden": true, "binaryDir": "${sourceDir}/build/${presetName}", "cacheVariables": { "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" } }, { "name": "debug-build", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "USE_DEBUG_OUTPUT": "ON", "USE_LOG": "ON", "USE_LOG_SEVERITY": "0" } }, { "name": "release-build", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "USE_DEBUG_OUTPUT": "OFF", "USE_LOG": "OFF" } }, { "name": "use-clang", "hidden": true, "inherits": [ "default-build-dir", "use-ninja" ], "cacheVariables": { "CMAKE_C_COMPILER": "clang", "CMAKE_CXX_COMPILER": "clang++", "CMAKE_CXX_FLAGS": "-stdlib=libc++", "CMAKE_EXE_LINKER_FLAGS": "-stdlib=libc++", "CMAKE_SHARED_LINKER_FLAGS": "-stdlib=libc++" } }, { "name": "use-gcc", "hidden": true, "inherits": [ "default-build-dir", "use-ninja" ], "cacheVariables": { "CMAKE_C_COMPILER": "gcc", "CMAKE_CXX_COMPILER": "g++" } }, { "name": "use-msvc-cl", "hidden": true, "inherits": [ "default-build-dir", "use-ninja" ], "cacheVariables": { "CMAKE_C_COMPILER": "cl", "CMAKE_CXX_COMPILER": "cl" } }, { "name": "use-msvc-clang-cl", "hidden": true, "inherits": [ "default-build-dir", "use-ninja" ], "cacheVariables": { "CMAKE_C_COMPILER": "clang-cl", "CMAKE_CXX_COMPILER": "clang-cl" } }, { "name": "linux-clang-debug", "displayName": "Linux clang debug", "inherits": [ "use-clang", "debug-build" ] }, { "name": "linux-clang-release", "displayName": "Linux clang release", "inherits": [ "use-clang", "release-build" ] }, { "name": "linux-gcc-debug", "displayName": "Linux gcc debug", "inherits": [ "use-gcc", "debug-build" ] }, { "name": "linux-gcc-release", "displayName": "Linux gcc release", "inherits": [ "use-gcc", "release-build" ] }, { "name": "windows-arch-x64", "hidden": true, "architecture": { "value": "x64", "strategy": "external" }, "toolset": { "value": "host=x64", "strategy": "external" } }, { "name": "windows-default", "displayName": "Windows x64 Debug", "hidden": true, "inherits": [ "use-msvc-cl", "windows-arch-x64" ], "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } } }, { "name": "windows-default-debug", "displayName": "Windows x64 Debug", "inherits": [ "windows-default", "debug-build" ] }, { "name": "windows-default-release", "displayName": "Windows x64 Release", "inherits": [ "windows-default", "release-build" ] } ], "buildPresets": [ { "name": "windows-default", "configurePreset": "windows-default-debug" }, { "name": "linux-default", "configurePreset": "linux-clang-debug" } ] }