CMake 4.2.1 available for download

December 9, 2025

We are pleased to announce that CMake 4.2.1 is now available for download.

Please use the latest release from our download page:
https://cmake.org/download/

See also the release notes and release milestone

Thanks for your support!

Changes made since CMake 4.2.0:

Ben Boeckel (1):
  MSVC: Restore pre-4.2 default PDB paths

Brad King (25):
  ci: Update CMake version to 4.2.0
  VS/Android: Use ApplicationTypeRevision 3.0 in VS2026
  Tests/RunCMake/GeneratorToolset: Fix Visual Studio 18 2026 host arch on ARM64
  Help: Fix CPack AppImage Generator heading capitalization
  Help: Add 4.2 release note for CPack AppImage generator
  ci: Tolerate sccache server stop failures on Windows
  Tests/TryCompile: Improve error message formatting
  ci: Fix LLVM/Clang nightly CI job tags on Windows
  ci: Enable c++modules shared libraries test on VS ARM64 jobs
  ci: Update Windows jobs to VS 2026
  Source: Improve detection of Linux architectures requiring explicit libatomic
  ExternalProject: Fix environment modification ops named with underscores
  Emscripten: Restore placement of source files on compile command-lines
  Emscripten: Drop hard-coded -fPIC flag
  Tests/RunCMake/Emscripten: Add tests covering try_compile COPY_FILE
  ci: Make node available to Emscripten tests
  Emscripten: Fix try_run to run the `.js` file and not the adjacent `.wasm`
  Emscripten: Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID
  StdIo: Restore Windows Console I/O modes on Ctrl-C
  Help: Replace QtCreator link with its permanent redirect
  VS: Restore support for VS 2019 with toolset v142 versions before 14.29
  FASTBuild: Add internal helper for intermediate directory creation
  FASTBuild: Fix default MSVC compiler PDB paths
  Help: Add 4.2 release note about VS flag suppression
  CMake 4.2.1

Craig Scott (1):
  fileAPI: Silently ignore non-target order dependencies

Hirofumi Nakamura (1):
  Help: Document Renesas compiler toolchain

Matthew Woehlke (5):
  CPS: Fix exporting definitions
  cmExportCommand: Fix PACKAGE_INFO argument parsing
  CPS: Fix exporting definitions in CMake 4.1
  export: Improve error message consistency
  cmake_file_api: Improve error message consistency

Tarun Prabhu (1):
  LLVMFlang-Fortran: Use -J instead of -module-dir

Vito Gamberini (1):
  export: Fix exporting targets with multiple file sets

Leave a Reply