cmake config_error ai_generated true

CMake Error: include could not find requested file

ID: cmake/config-file-not-found

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3 active

Root Cause

CMake module or config file missing.

generic

Workarounds

  1. 88% success Install missing CMake module package
  2. 90% success Set CMAKE_MODULE_PATH to directory containing the .cmake file

Dead Ends

Common approaches that don't work:

  1. Create empty .cmake file 80% fail

    Build proceeds but configuration wrong

  2. Comment out the include 78% fail

    Breaks dependent build logic