{
  "version": 3,
  "configurePresets": [
    {
      "name": "Default",
      "binaryDir": "${sourceDir}/build",
      "installDir": "${sourceDir}/dist",
      "cacheVariables": {
        "CMAKE_BUILD_TYPE": "Release",
        "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded"
      }
    },
    {
      "name": "MLX Metal",
      "inherits": [ "Default" ],
      "cacheVariables": {
        "OLLAMA_MLX_BACKENDS": "metal_v3;metal_v4"
      }
    }
  ],
  "buildPresets": [
    {
      "name": "Default",
      "configurePreset": "Default",
      "configuration": "Release"
    },
    {
      "name": "MLX Metal",
      "targets": [ "ollama-mlx-backends" ],
      "configurePreset": "MLX Metal"
    }
  ]
}
