cmake
dependency_error
ai_generated
true
FetchContent: failed to download dependency
ID: cmake/fetch-content-failure
80%Fix Rate
84%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
FetchContent failed to download external dependency.
genericWorkarounds
-
90% success Specify GIT_TAG for deterministic builds: FetchContent_Declare(... GIT_TAG v1.0)
-
85% success Set FETCHCONTENT_FULLY_DISCONNECTED=ON for offline builds with cached deps
Dead Ends
Common approaches that don't work:
-
Vendor all dependencies in tree
68% fail
Large repo, hard to update
-
Use system packages only
72% fail
May not have right version