cmake dependency_error ai_generated true

FetchContent: failed to download dependency

ID: cmake/fetch-content-failure

Also available as: JSON · Markdown
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3 active

Root Cause

FetchContent failed to download external dependency.

generic

Workarounds

  1. 90% success Specify GIT_TAG for deterministic builds: FetchContent_Declare(... GIT_TAG v1.0)
  2. 85% success Set FETCHCONTENT_FULLY_DISCONNECTED=ON for offline builds with cached deps

Dead Ends

Common approaches that don't work:

  1. Vendor all dependencies in tree 68% fail

    Large repo, hard to update

  2. Use system packages only 72% fail

    May not have right version