Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

CMake

$ cmake Official Low Risk
Kitware · Code & DevOps · BSD-3-Clause · macos / linux / windows

Industry-standard meta-build system generating Ninja, Make, Xcode, and Visual Studio build trees for C and C++ projects. Includes cmake -E capabilities JSON introspection and --list-presets, though stateful CMakeCache.txt directories and verbose compiler logs require disciplined agent flags.

FCRS-1.0 Score
79 /100
Good
Medium Confidence
Zero-Friction Install
brew install cmake
CLI vs MCP Decision CLI Only

Inspects host compilers and generates local build graphs; requires direct local shell execution.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

Non-interactive CLI with cmake -E capabilities JSON and --list-presets, but configure/build output is verbose text and lacks a simple dry-run.

  • cmake -E capabilities returns JSON metadata
  • Configure/build streams verbose compiler diagnostics without --json
Trust & Safety 19 / 25

Local-only tool, though running cmake . in-source pollutes the repository and CMakeLists.txt executes arbitrary configure-time commands.

  • Out-of-source -B build isolates build artifacts
  • Stateful CMakeCache.txt can cause subtle stale-variable bugs
Setup & Portability 13 / 15

Available via Homebrew, PyPI, and official binaries across macOS, Linux, and Windows, though depends on external compilers/Ninja.

  • Cross-platform binary, requires host C/C++ toolchain
Utility & Efficiency 13 / 15

De-facto standard across C/C++ ecosystems with unified cmake --build and ctest drivers.

  • Abstracts Ninja, Make, MSVC, and Xcode backends
Maintenance & Lineage 9 / 10

Maintained by Kitware under BSD-3-Clause with multi-decade stability.

  • Official kitware/cmake project
Docs & Verifiability 8 / 10

Comprehensive documentation, though legacy vs modern target-based idioms create noisy search results.

  • Complete command reference at cmake.org/documentation

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

No credentials stored; writes build configuration state into CMakeCache.txt inside the build directory.

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-3-Clause open-source binary; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# CMake (cmake) Agent Rules
- Always use out-of-source builds (`-S . -B build`)—never run `cmake .` in the repo root.
- Check `cmake --list-presets` first if `CMakePresets.json` exists.
- Pass `--output-on-failure` when running `ctest --test-dir build`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect CMake JSON capabilities and generators
cmake -E capabilities

Outputs supported generators, version, and file-API capabilities in JSON without touching any project.

List configured CMakePresets.json presets
cmake --list-presets

Prints available configure presets defined in the repository.

Controlled Writes & Previews

Configure and build into an isolated directory
cmake -S . -B build -G Ninja && cmake --build build

Keeps generated artifacts confined to build/ using out-of-source builds.

Strengths for Agents

  • + cmake --build and ctest give a consistent cross-platform build/test interface.
  • + CMakePresets.json (--list-presets) standardizes complex toolchain flags.
  • + Supported by virtually every C/C++ library and IDE.

Caveats & Pitfalls

  • ! Stateful CMakeCache.txt often forces agents to wipe build/ when changing toolchain flags.
  • ! Verbose configure/build text logs can quickly consume context windows on large C++ projects.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI