{
  "schemaVersion": "ebb.rule.v1",
  "id": "cpp.cmake.generator.visual-studio-12-2013.removed",
  "ecosystem": "cpp",
  "purl": "pkg:generic/cmake-generator/visual-studio-12-2013",
  "affectedVersions": "vers:semver/*",
  "event": "removed",
  "severity": "high",
  "title": "The Visual Studio 12 2013 generator is removed",
  "summary": "CMake 3.31 removed the Visual Studio 12 2013 generator. Projects and presets that still name that generator cannot configure on CMake 3.31 or newer. CMake 3.31.0 was published on 2024-11-06.",
  "replacement": "A still-supported Visual Studio generator, such as Visual Studio 17 2022",
  "deadline": "2024-11-06",
  "sources": [
    {
      "title": "CMake 3.31 release notes (Visual Studio 12 2013 generator removed)",
      "url": "https://cmake.org/cmake/help/latest/release/3.31.html",
      "accessedAt": "2026-10-19"
    },
    {
      "title": "Visual Studio 12 2013 generator documentation",
      "url": "https://cmake.org/cmake/help/latest/generator/Visual%20Studio%2012%202013.html",
      "accessedAt": "2026-10-19"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-19",
    "reviewedAt": "2026-10-19",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Update CMake presets, CI matrix generator names, and documented configure commands together so every surface names the same supported generator."
    ],
    "steps": [
      {
        "id": "replace-vs-2013-generator",
        "title": "Replace the Visual Studio 12 2013 generator",
        "instructions": "Change every reported generator name from Visual Studio 12 2013 to a supported Visual Studio generator installed on the build hosts.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "cmake -G \"Visual Studio 17 2022\" -S . -B build",
        "purpose": "Configure with a supported Visual Studio generator."
      }
    ]
  }
}
