cmake
dependency_error
ai_generated
true
CMake Error: Could not find a package configuration file for
ID: cmake/find-package-failed
80%Fix Rate
85%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
CMake cant find required dependency.
genericWorkarounds
-
90% success Install dev package: apt-get install libfoo-dev
-
88% success Set CMAKE_PREFIX_PATH to correct install location
Dead Ends
Common approaches that don't work:
-
Set CMAKE_PREFIX_PATH to random dirs
75% fail
Finds wrong or incompatible version
-
Skip find_package with FORCE
82% fail
Build fails later at link time