Automic VaultAutomic Vault

brew / 审批门

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 cmake

查看 cmake 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

cmake configures native builds and can run project-defined build commands.

凭据访问

Reads environment variables, toolchain files, and project config.

远程变更

Usually local, but custom commands can call external services.

发布/制品风险

Can produce native release artifacts and installer packages.

推荐控制

Gate install/package targets and custom commands that use secrets.

代理使用指南

Allow configure/build in scanned worktrees; require approval for install, package, and secret-backed custom targets.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cmake

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install cmake

MacPorts ports tree · devel/cmake/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cmake

Alpine Linux edge package indexes · cmake · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install cmake

Debian stable package indexes · cmake · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install cmake

Fedora Rawhide package metadata · cmake · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#cmake

nixpkgs package indexes · pkgs/by-name/cm/cmake/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S cmake

Arch Linux sync databases · cmake · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install cmake

openSUSE Tumbleweed package metadata · cmake · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install cmake

Chocolatey community package catalog · cmake · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/cmake

Scoop official bucket manifest trees · bucket/cmake.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id Kitware.CMake -e

Windows Package Manager source index · Kitware.CMake · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Cross-platform make

命令和别名

  • ccmake
  • cmake
  • cpack
  • ctest

历史

项目历史与用法

CMake is Kitware's cross-platform build, test, and package tooling family. It began as infrastructure for large portable C++ scientific software and became the de facto build-system interface for much of the C and C++ open source ecosystem.

项目历史

The official CMake history says CMake was created in 2000 for the National Library of Medicine's Insight Toolkit, after Bill Hoffman concluded that a new portable C++ build tool was needed. The early design goals were native build-tool support, one input file across platforms, bootstrap portability with only a C++ compiler, and code-generator support.

采用历史

CMake moved from ITK into VTK and ParaView in 2002, then into major open source projects over time. The official timeline highlights KDE switching in 2006, LLVM removing autoconf in favor of CMake in 2016, Visual Studio adding integrated CMake project support in 2017, and Qt switching to CMake in 2019. The CMake about page claims more than two million downloads per month, and the batch input lists packages across Homebrew, Debian, Fedora, Arch, Nix, MacPorts, Windows package managers, and more.

使用方式

The cmake executable generates project buildsystems, builds and installs projects, runs scripts, runs command-line helper actions, and exposes help. CMake projects begin from CMakeLists.txt files; modern workflows may also use CMakePresets.json and CMakeUserPresets.json, while generated build trees contain CMakeCache.txt.

为什么软件包爱好者会关心

CMake is package-nerd infrastructure: it is the build-system front door for thousands of upstream projects and distro recipes. Its generator model lets package maintainers target Make, Ninja, IDE projects, and platform-native tooling from the same upstream metadata, while CTest and CPack standardize test and packaging hooks.

时间线

  • 2000: CMake is created for the National Library of Medicine's Insight Toolkit project.
  • 2002: VTK and ParaView replace their build systems with CMake.
  • 2006: KDE switches to CMake, helping drive Linux distribution availability.
  • 2011: Ninja generator is added to CMake.
  • 2016: LLVM switches to CMake and removes autoconf.
  • 2017: Microsoft Visual Studio introduces integrated support for CMake projects.
  • 2019: The Qt Group switches to CMake.
  • 2020: CMake Presets are incorporated into Visual Studio and Ninja Multi-Config is added.
  • 2022: CMake is publicly described as the standard build system in a C++Now talk cited by the official timeline.

Related projects

  • The official timeline ties CMake to ITK, VTK, ParaView, KDE, LLVM, Visual Studio, Qt, Ninja, CTest, CPack, and C++20 modules work. It is also the build dependency for projects such as cmark.

审批门

高风险命令的人工审核元数据

本地审批门种子包含 6 条适用于 cmake 的规则。覆盖的入口点:cmake, cpack, ctest。严重级别:高, 中。覆盖状态:partial,审核于 2026-05-21。

受控操作示例

  • Execute a CMake script with -P.
  • Invoke the configured native build tool.
  • Install build outputs to a destination prefix.
  • Remove paths through CMake command mode.
  • Execute project tests.
  • Generate release packages or installers.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
CMakePresets.jsonCMakeUserPresets.json<build-tree>/CMakeCache.txt

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ccmakecli全局可执行文件
cmakecli全局可执行文件
cpackcli全局可执行文件
ctestcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本4.4.0
管理器更新时间2026-07-10
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/Kitware/CMake

安装元数据

软件包元数据

软件包键brew:cmake
版本4.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/cmake
主页https://www.cmake.org/
仓库https://github.com/Kitware/CMake
上游文档https://cmake.org/cmake/help/latest
许可证BSD-3-Clause
源码归档https://github.com/Kitware/CMake/releases/download/v4.4.0/cmake-4.4.0.tar.gz
最后更新2026-07-10T04:16:11Z
Pulseupdated
macOS 提供的库ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项To install the CMake documentation, run: brew install cmake-docs

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecmake
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

cmake 3.31.6-2

cross-platform, open-source make system

https://cmake.org/

sudo apt install cmake
  • Section: devel
  • Architecture: amd64
  • 12 依赖
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Cmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cmake-curses-gui 3.31.6-2

curses based user interface for CMake (ccmake)

https://cmake.org/

sudo apt install cmake-curses-gui
  • Section: devel
  • Architecture: amd64
  • Source Package: cmake
  • 12 依赖
  • normalized package name match
  • 匹配方式:Cmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmake-curses-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cmake-data 3.31.6-2

CMake data files (modules, templates and documentation)

https://cmake.org/

sudo apt install cmake-data
  • Section: devel
  • Architecture: all
  • Source Package: cmake
  • normalized package name match
  • 匹配方式:Cmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmake-data from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cmake-doc 3.31.6-2

extended documentation in various formats for CMake

https://cmake.org/

sudo apt install cmake-doc
  • Section: doc
  • Architecture: all
  • Source Package: cmake
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Cmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmake-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

cmake-qt-gui 3.31.6-2

Qt based user interface for CMake (cmake-gui)

https://cmake.org/

sudo apt install cmake-qt-gui
  • Section: devel
  • Architecture: amd64
  • Source Package: cmake
  • 13 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cmake
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cmake-qt-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

cmake

nix profile install nixpkgs#cmake
  • normalized package name match
  • 匹配方式:Cmake
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/cm/cmake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

cmake 3.28.3-1build7

cross-platform, open-source make system

https://cmake.org/

sudo apt install cmake
  • Section: devel
  • Architecture: amd64
  • 12 依赖
  • 6 可选依赖
  • normalized package name match
  • 匹配方式:Cmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmake from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

cmake-curses-gui 3.28.3-1build7

curses based user interface for CMake (ccmake)

https://cmake.org/

sudo apt install cmake-curses-gui
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: cmake
  • 12 依赖
  • normalized package name match
  • 匹配方式:Cmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmake-curses-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

cmake-data 3.28.3-1build7

CMake data files (modules, templates and documentation)

https://cmake.org/

sudo apt install cmake-data
  • Section: devel
  • Architecture: all
  • Source Package: cmake
  • normalized package name match
  • 匹配方式:Cmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmake-data from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

cmake-doc 3.28.3-1build7

extended documentation in various formats for CMake

https://cmake.org/

sudo apt install cmake-doc
  • Section: doc
  • Architecture: all
  • Source Package: cmake
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Cmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmake-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

cmake-qt-gui 3.28.3-1build7

Qt based user interface for CMake (cmake-gui)

https://cmake.org/

sudo apt install cmake-qt-gui
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: cmake
  • 14 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cmake
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cmake-qt-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ccmake 4.2.3-r0

Cross-platform, open-source make system (ccmake configurator)

https://cmake.org/

sudo apk add ccmake
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: cmake
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ccmake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cmake 4.2.3-r0

Cross-platform, open-source make system

https://cmake.org/

sudo apk add cmake
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: cmake
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmake from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cmake-bash-completion 4.2.3-r0

Bash completions for cmake

https://cmake.org/

sudo apk add cmake-bash-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: cmake
  • normalized package name match
  • 匹配方式:Cmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmake-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cmake-doc 4.2.3-r0

Cross-platform, open-source make system (documentation)

https://cmake.org/

sudo apk add cmake-doc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: cmake
  • normalized package name match
  • 匹配方式:Cmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmake-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cmake-emacs 4.2.3-r0

Cross-platform, open-source make system (emacs mode)

https://cmake.org/

sudo apk add cmake-emacs
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: cmake
  • normalized package name match
  • 匹配方式:Cmake
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cmake-emacs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • approval-gate seed metadata
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment