凭据访问
Reads environment variables, toolchain files, and project config.
代理安全
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.
安装
brew install cmakelocal Homebrew formula metadata
sudo port install cmakeMacPorts ports tree · devel/cmake/Portfile · 来源: api.github.com
sudo apk add cmakeAlpine Linux edge package indexes · cmake · 来源: dl-cdn.alpinelinux.org
sudo dnf install cmakeFedora Rawhide package metadata · cmake · 来源: dl.fedoraproject.org
nix profile install nixpkgs#cmakenixpkgs package indexes · pkgs/by-name/cm/cmake/package.nix · 来源: api.github.com
sudo pacman -S cmakeArch Linux sync databases · cmake · 来源: geo.mirror.pkgbuild.com
sudo zypper install cmakeopenSUSE Tumbleweed package metadata · cmake · 来源: download.opensuse.org
choco install cmakeChocolatey community package catalog · cmake · 来源: community.chocolatey.org
scoop install main/cmakeScoop official bucket manifest trees · bucket/cmake.json · 来源: api.github.com
winget install --id Kitware.CMake -eWindows Package Manager source index · Kitware.CMake · 来源: cdn.winget.microsoft.com
概览
Cross-platform make
历史
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.
审批门
本地审批门种子包含 6 条适用于 cmake 的规则。覆盖的入口点:cmake, cpack, ctest。严重级别:高, 中。覆盖状态:partial,审核于 2026-05-21。
local files
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.
Config paths the tool may read or write during local use.
CMakePresets.jsonCMakeUserPresets.json<build-tree>/CMakeCache.txt可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ccmake | cli | 全局可执行文件 | |
cmake | cli | 全局可执行文件 | |
cpack | cli | 全局可执行文件 | |
ctest | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cmake |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cmake 3.31.6-2
cross-platform, open-source make system
sudo apt install cmakecmake-curses-gui 3.31.6-2
curses based user interface for CMake (ccmake)
sudo apt install cmake-curses-guicmake-data 3.31.6-2
CMake data files (modules, templates and documentation)
sudo apt install cmake-datacmake-doc 3.31.6-2
extended documentation in various formats for CMake
sudo apt install cmake-doccmake-qt-gui 3.31.6-2
Qt based user interface for CMake (cmake-gui)
sudo apt install cmake-qt-guicmake
nix profile install nixpkgs#cmakecmake 3.28.3-1build7
cross-platform, open-source make system
sudo apt install cmakecmake-curses-gui 3.28.3-1build7
curses based user interface for CMake (ccmake)
sudo apt install cmake-curses-guicmake-data 3.28.3-1build7
CMake data files (modules, templates and documentation)
sudo apt install cmake-datacmake-doc 3.28.3-1build7
extended documentation in various formats for CMake
sudo apt install cmake-doccmake-qt-gui 3.28.3-1build7
Qt based user interface for CMake (cmake-gui)
sudo apt install cmake-qt-guiccmake 4.2.3-r0
Cross-platform, open-source make system (ccmake configurator)
sudo apk add ccmakecmake 4.2.3-r0
Cross-platform, open-source make system
sudo apk add cmakecmake-bash-completion 4.2.3-r0
Bash completions for cmake
sudo apk add cmake-bash-completioncmake-doc 4.2.3-r0
Cross-platform, open-source make system (documentation)
sudo apk add cmake-doccmake-emacs 4.2.3-r0
Cross-platform, open-source make system (emacs mode)
sudo apk add cmake-emacs来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.