{ "version": 3, "cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 }, "configurePresets": [ { "name": "windows", "displayName": "Windows (default Visual Studio)", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build" }, { "name": "linux-debug", "displayName": "Linux Debug", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" }, "binaryDir": "${sourceDir}/build", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" } }, { "name": "linux-release", "displayName": "Linux Release", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" }, "binaryDir": "${sourceDir}/build", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release" } }, { "name": "macos", "displayName": "macOS (Xcode)", "generator": "Xcode", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" }, "binaryDir": "${sourceDir}/build" }, { "name": "mingw-debug", "displayName": "Windows MinGW Debug (Ninja, needs gcc on PATH)", "generator": "Ninja", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build/mingw", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "CMAKE_C_COMPILER": "gcc", "CMAKE_CXX_COMPILER": "g++", "FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw" } }, { "name": "mingw-release", "displayName": "Windows MinGW Release (Ninja, needs gcc on PATH)", "generator": "Ninja", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build/mingw", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_C_COMPILER": "gcc", "CMAKE_CXX_COMPILER": "g++", "FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw" } }, { "name": "windows-clang-cl", "displayName": "Windows clang-cl (Visual Studio solution, ClangCL toolset)", "toolset": "ClangCL", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build/clang-cl-vs", "cacheVariables": { "FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl-vs" } }, { "name": "clang-cl-debug", "displayName": "Windows clang-cl Debug (Ninja, needs LLVM on PATH)", "generator": "Ninja", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build/clang-cl", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "CMAKE_C_COMPILER": "clang-cl", "CMAKE_CXX_COMPILER": "clang-cl", "FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl" } }, { "name": "clang-cl-release", "displayName": "Windows clang-cl Release (Ninja, needs LLVM on PATH)", "generator": "Ninja", "condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" }, "binaryDir": "${sourceDir}/build/clang-cl", "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_C_COMPILER": "clang-cl", "CMAKE_CXX_COMPILER": "clang-cl", "FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl" } } ], "buildPresets": [ { "name": "windows-debug", "configurePreset": "windows", "configuration": "Debug" }, { "name": "windows-release", "configurePreset": "windows", "configuration": "Release" }, { "name": "linux-debug", "configurePreset": "linux-debug" }, { "name": "linux-release", "configurePreset": "linux-release" }, { "name": "macos-debug", "configurePreset": "macos", "configuration": "Debug" }, { "name": "macos-release", "configurePreset": "macos", "configuration": "Release" }, { "name": "mingw-debug", "configurePreset": "mingw-debug" }, { "name": "mingw-release", "configurePreset": "mingw-release" }, { "name": "windows-clang-cl-debug", "configurePreset": "windows-clang-cl", "configuration": "Debug" }, { "name": "windows-clang-cl-release", "configurePreset": "windows-clang-cl", "configuration": "Release" }, { "name": "clang-cl-debug", "configurePreset": "clang-cl-debug" }, { "name": "clang-cl-release", "configurePreset": "clang-cl-release" } ] }