CMake for mac logo

CMake for Mac

4.3 Based on 3 user rates

Cross-platform build system generator for Mac.

Verified Safe No Malware Editor Tested
M
Reviewed by
Matthew
Content Editor

CMake Overview

CMake for mac is a free, open-source build system generator maintained by Kitware, the same company behind VTK and ParaView. Version 4.4.3 is the current stable release, distributed for Mac as a universal binary. Rather than compiling code directly, CMake reads a single set of configuration files and generates whatever native build system you actually want to use, Xcode projects, Ninja files, or plain Makefiles. It's the build system behind major open-source projects like Blender, LLVM and Clang, Qt, MySQL, and MuseScore. The Mac download installs as a GUI app, but most developers use it from Terminal or via Homebrew, which requires one small extra step covered below.

Why Choose CMake for Mac

Most build tools lock a project into one compiler or one IDE. CMake reads one configuration and outputs whatever your team is actually using, so a project built with Xcode on one machine and Ninja on a CI server doesn't need two separate setups maintained side by side. That flexibility is why it underpins such a wide range of open-source C and C++ projects, from game engines like Blender's toolchain to compiler infrastructure like LLVM.

The GUI installer hides one detail that trips up a lot of new Mac users: dragging CMake.app into Applications gives you a working graphical tool, but Terminal won't recognize the cmake command until you take one more step. That's covered in detail in the installation section below, since it's the single most common thing people search for when setting this up.

Key Features

  • Generates Xcode projects, Ninja files, or Makefiles from one configuration, matching whatever toolchain your team already uses
  • Powers major open-source projects, including Blender, LLVM/Clang, Qt, MySQL, and MuseScore
  • Bundled CTest for running and managing project test suites
  • Bundled CPack for packaging-built software into installers or archives
  • GUI app (CMake.app) for configuring build options visually
  • Command-line tools for scripting and terminal-based workflows
  • Out-of-source builds, keeping generated files separate from source code so deleting a build folder never touches your source
  • Wide compiler support across GCC, Clang, and MSVC
  • Installable via Homebrew or pip, not just the official .dmg
  • Cryptographically signed releases (SHA-256 hashes plus a PGP signature) for verifying a download hasn't been tampered with

What's New in 4.4.3 Version

Version 4.4.3 is a small maintenance release. The one documented change: Swift policy CMP0215's new behavior now requires policies CMP0157 and CMP0195 to also be set to NEW, a change relevant specifically to projects building Swift code with CMake. This follows the broader 4.4 release line, which continues Kitware's usual pattern of prioritizing stability and broad compiler compatibility over frequent feature churn, unsurprising for a tool this many other projects depend on.

Supported macOS Versions

CMake offers two separate Mac downloads: a universal binary for macOS 12 or later, and a separate universal build for Macs running macOS 10.10 or later, both covering Apple Silicon and Intel from the same installer. Which one you need depends on your Mac's operating system version, not its processor. Apple Silicon Macs configure and build large projects noticeably faster than Intel Macs, since CMake's own configuration step involves a fair amount of file scanning and dependency resolution, though this matters most on genuinely large codebases rather than small personal projects.

How to Install CMake on macOS?

Setting up CMake on your Mac takes a couple of extra steps compared to a typical app.

Option 1: Official installer (.dmg)

  1. Download the latest version of CMake for Mac, matching your macOS version (12+ or 10.10+).
  2. Open the downloaded disk image (.dmg) file.
  3. Drag the CMake app into your Applications folder.
  4. Launch CMake from Applications.
  5. Open the Tools menu and choose "Install For Command Line Use." This is the step that actually makes cmake work in Terminal, without it, Terminal returns "command not found" even though the app itself opens fine.
  6. Confirm it worked by opening Terminal and running cmake --version.

Option 2: Homebrew (the way most Mac developers actually install it)

  1. Open Terminal.
  2. Run brew install cmake.
  3. Confirm it worked by running cmake --version.

Homebrew's version updates automatically whenever you run brew upgrade, while the .dmg installer requires manually downloading a new version each time. If you're setting up CMake specifically to build another open-source project you found on GitHub, there's a good chance its own README already assumes you're using Homebrew.

Option 3: pip (for Python-centric workflows)

Running pip install cmake installs a CMake binary alongside your Python environment, officially listed by Kitware as an alternative binary distribution. This is common in Python projects that compile native extensions as part of their build process.

How to Use CMake?

  1. Open a terminal and navigate to your project's source directory.
  2. Run cmake -S . -B build to configure the project into a separate build folder.
  3. Run cmake --build build to compile the project using the generated files.
  4. Use ctest from the build folder to run any included test suites.
  5. Use cpack from the build folder if you need to package the finished build into an installer or archive.
  6. Prefer a visual workflow? Open the CMake GUI app instead, point it at your source and build folders, and click Configure and Generate.

Alternatives

Ninja: A free, open-source build system focused purely on build speed; commonly used as the actual build tool CMake generates files for, rather than a direct CMake replacement.

Meson: A free, open-source build system generator with a simpler configuration syntax than CMake's, popular in newer C and C++ projects that want less boilerplate.

Bazel: Google's free, open-source build tool, built for very large, multi-language codebases with reproducible builds as a core design goal.

Pros
  • Completely free and open source, with a permissive BSD license
  • Generates build files for multiple compilers and IDEs from one setup
  • Includes CTest and CPack alongside the core build generator
  • Two Mac builds cover both current and older macOS versions
  • Backed by a long-established, actively maintained open-source project
Cons
  • Command-line tools require a manual linking step after installing the GUI app
  • Configuration syntax has a learning curve for developers new to CMake
  • Errors in complex projects can be harder to trace than with simpler build tools
Previous Versions
Version 4.4.1
Jul 30, 2026
Download v4.4.1
Version 3.16.5
Mar 05, 2020
Download v3.16.5
Frequently Asked Questions
Is CMake safe to use?
Yes, it's open source, with publicly reviewable code and a long development history.
Is CMake free?
Yes, it's completely free under the BSD 3-Clause open-source license.
Does CMake work on Apple Silicon Macs?
Yes. Both official Mac downloads, the macOS 12+ build and the macOS 10.10+ build, are universal binaries covering Apple Silicon and Intel from one installer.
Why does Terminal say "cmake: command not found" after installing?
The GUI installer doesn't automatically link the command-line tool. Either open CMake.app and use Tools > Install for Command Line Use, or skip this entirely by installing via Homebrew instead, which sets it up automatically.
Does CMake compile my code directly?
No, it generates project files for tools like Xcode or Make, which then compile it.
Which Mac version of CMake should I download?
Use the macOS 12+ build unless you're on an older Mac, then use the 10.10+ build.
Can I install CMake without using the GUI installer?
Yes, many developers install it through Homebrew or pip instead.
Does CMake include testing tools?
Yes, CTest is bundled for running project test suites directly.

Final Verdict

CMake remains the standard way to manage cross-platform C and C++ builds without locking a project to one compiler or IDE. The Mac installer's one extra step, linking the command-line tools, catches a lot of new users, but it takes seconds to fix once you know where to look. For anyone building open-source or cross-platform software on Mac, CMake is close to unavoidable, and for good reason.

Download CMake for Mac Latest Version

Ready to set up a cross-platform build system on your Mac?

Download CMake for Mac to generate Xcode projects, Makefiles, or Ninja build files from a single configuration, with CTest and CPack included for testing and packaging. Whether you're building an open-source C++ library, compiling a cross-platform app, or setting up a new development environment, CMake gives you a consistent, widely supported build process.

Ready to Download?

Free, safe, and always the latest version — CMake

Download CMake

Comments (0)

No comments yet. Be the first!

Leave a Comment

Specs preview enlarged