{
  "id": "cmake/imported-target-missing-interface-include-dirs",
  "signature": "CMake Error: Imported target 'Boost::filesystem' includes non-existent path '/usr/local/include/boost_1_82'",
  "signature_zh": "CMake错误：导入的目标'Boost::filesystem'包含不存在的路径'/usr/local/include/boost_1_82'",
  "regex": "CMake Error: Imported target '[^']+' includes non-existent path '[^']+'",
  "domain": "cmake",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An imported target's INTERFACE_INCLUDE_DIRECTORIES property references a directory that no longer exists, often due to a moved or removed Boost installation.",
  "root_cause_type": "generic",
  "root_cause_zh": "导入目标的INTERFACE_INCLUDE_DIRECTORIES属性引用了不再存在的目录，通常是由于Boost安装被移动或删除。",
  "versions": [
    {
      "version": "CMake 3.26",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CMake 3.27",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Boost 1.82",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Boost 1.84",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Manually delete the Boost CMake config files and reinstall",
      "why_fails": "The config files may be cached; deletion without clearing CMake cache leads to stale references.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Set BOOST_ROOT to a new path without updating the imported target",
      "why_fails": "BOOST_ROOT only affects find_package; the imported target's properties are cached after first configuration.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Use add_definitions(-DBOOST_ALL_NO_LIB) to bypass library checks",
      "why_fails": "This only disables auto-linking, not the include directory validation.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Delete CMakeCache.txt and rebuild from scratch to refresh imported target properties",
      "success_rate": 0.9,
      "how": "Delete CMakeCache.txt and rebuild from scratch to refresh imported target properties",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set the missing path to an existing dummy directory using target_include_directories on the imported target",
      "success_rate": 0.7,
      "how": "Set the missing path to an existing dummy directory using target_include_directories on the imported target",
      "condition": "",
      "sources": []
    },
    {
      "action": "Reinstall Boost to the original location or symlink the missing directory",
      "success_rate": 0.85,
      "how": "Reinstall Boost to the original location or symlink the missing directory",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Delete CMakeCache.txt and rebuild from scratch to refresh imported target properties",
    "Set the missing path to an existing dummy directory using target_include_directories on the imported target",
    "Reinstall Boost to the original location or symlink the missing directory"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://cmake.org/cmake/help/latest/command/add_library.html#imported-libraries",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-09-20",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}