中文 | English
A vfox plugin for CMake. It installs official CMake releases on Linux, macOS and Windows, and can adopt a CMake that is already on your machine.
- Installs every official CMake release from 2.8.8 onwards, with SHA-256 verification of the downloaded archive.
- Linux (amd64, 386 and arm64), macOS (universal / amd64) and Windows (amd64, 386 and arm64) builds, selected automatically for the running platform.
vfox link --detect cmakefinds a system CMake, a Homebrew or Scoop install, or anything else onPATH, and links it instead of downloading a second copy. See Detect.- Works with project version files through vfox (
vfox use,.tool-versions). - Offline hook tests, Lua formatting and static analysis, license-header checks, and Linux and Windows container E2E suites on every pull request.
Install vfox first, then:
vfox add cmakeUpdating the plugin:
vfox update cmake# List the versions available for your platform.
vfox search cmake
# Install a release (the version is the one `cmake --version` prints).
vfox install cmake@3.31.6
# Select it for the current shell.
vfox use cmake@3.31.6
# Or select it globally.
vfox use --global cmake@3.31.6
# See what is installed and what is selected.
vfox list cmake
vfox current cmake
# Run a command with an installed CMake without changing the shell.
vfox exec cmake@3.31.6 -- cmake --version
# On Windows, vfox 1.1.0 needs the extension: -- cmake.exe --versionThis plugin needs vfox 1.1.0 or later. That is the first release with the
Detect hook used by vfox link --detect cmake.
- Detect and link a system CMake
- Supported platforms and versions
- Development and local checks
- End-to-end tests
- Troubleshooting
- Changes
Pull requests are welcome. Before opening one, run the local checks described in docs/development.md and update both docs/changes.md and docs/zh-CN/changes.md when the change is user-visible.
Maintainers can publish from Actions → Plugin → Run workflow on the default
branch by entering a stable plugin version without the v prefix. The shared
workflow updates metadata.lua, creates the version commit and tag, and
publishes the ZIP and manifest in this repository. No local tag or extra
release token is needed. Pull requests only run checks.
Existing version-tag pushes are supported when PLUGIN.version already matches
the tag. If publication fails, re-run the original failed job to resume it.
The workflow follows the shared @v1 release-tool version. Updating the tool
does not release this plugin. See the
shared workflow documentation
for the package contract and first-rollout requirements.
Apache-2.0. See the license header policy in
.licenserc.yaml.