)]}'
{
  "commit": "6a406ee1412f10fd27c2e788f2860355406dd0c0",
  "tree": "2a98194c897717ba7e010d7f8a52b036972144c4",
  "parents": [
    "ca76c3765049cd1e379186dd3f6432d12eae68f2"
  ],
  "author": {
    "name": "Niels Lohmann",
    "email": "mail@nlohmann.me",
    "time": "Sat Jul 11 23:58:18 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Sat Jul 11 23:58:18 2026 +0200"
  },
  "message": "Document that JSON_Diagnostics CMake option doesn\u0027t apply to pre-installed packages (#5270)\n\nCloses #3106. set(JSON_Diagnostics ON) before find_package() has no\neffect on a package built and installed elsewhere (Homebrew, vcpkg, a\nsystem package, etc.) -- the compile definition is baked into the\nexported nlohmann_jsonTargets.cmake at install time and the generated\nconfig script never re-reads that variable. Verified empirically\nagainst the real Homebrew-installed 3.12.0 package: the exported\ntarget carries a fixed $\u003c$\u003cBOOL:OFF\u003e:JSON_DIAGNOSTICS\u003d1\u003e, and the\nsuggested set(JSON_Diagnostics ON) snippet produces no change in\nexception output.\n\nDocuments the actual working fix (overriding the imported target\u0027s\nINTERFACE_COMPILE_DEFINITIONS property after find_package()) and the\nmulti-target \"JSON_DIAGNOSTICS redefined\" pitfall reported earlier in\nthe issue thread.\n\nSigned-off-by: Niels Lohmann \u003cmail@nlohmann.me\u003e\nCo-authored-by: Claude Sonnet 5 \u003cnoreply@anthropic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "91bdc1b39ea480696c9b561e31a634553e90843e",
      "old_mode": 33188,
      "old_path": "docs/mkdocs/docs/api/macros/json_diagnostics.md",
      "new_id": "d60df5e44a0538f21685bb032fa87fa6261c622a",
      "new_mode": 33188,
      "new_path": "docs/mkdocs/docs/api/macros/json_diagnostics.md"
    },
    {
      "type": "modify",
      "old_id": "05d1d346f6610f1de4964ee091225f7701ec0904",
      "old_mode": 33188,
      "old_path": "docs/mkdocs/docs/integration/cmake.md",
      "new_id": "a8a6d52b6df7250cd283293adda6b08f2d7a9013",
      "new_mode": 33188,
      "new_path": "docs/mkdocs/docs/integration/cmake.md"
    }
  ]
}
