Tools, software frameworks, and work flows for productivity with CMSIS based projects
 All Pages

CMake is an open-source, cross-platform family of tools designed to build, test and package software. As it is not automatically installed by cpackget script, you need to get the software and install it on your machine separately.

CMSIS-Build requires CMake 3.15 or above.


CMake is called from the Bash command line with the following syntax:

cmake [options] <path-to-source>

The script calls CMake twice with these options:

1. Step: Configuration

[options] Short Name
-G <generator-name> Specify a build system generator.
-S <path-to-source> Explicitly specify a source directory.
-B <path-to-build> Explicitly specify a build directory.

2. Step: Build

[options] Short Name
--build Build a CMake-generated project binary tree.
-j Number of parallel build jobs.
<target> Target to be built.
  • CMake supports different build systems. By default, Ninja is used. As a Windows user, copy the Ninja binary available from Releases to the installation directory of CMSIS-Build: ./cbuild/bin where it is invoked automatically.