Build with ninja

Install ninja

Download ninja.zip from the latest GitHub release. Unzip it and make sure that the directory containing the ninja.exe is the PATH-environment variable!

$sudo apt-get install ninja-build Install via Homebrew: $ brew install ninja

Configure for ninja and build

Run CMake with the ninja-generator:

$cmake ../source/dir -G Ninja$ ninja

Visual Studio remarks

When you configure with the Ninja generator you have to run CMake from the appropriate Visual Studio Command Prompt! From there you can both use cmake as well as cmake-gui which starts the GUI. In the GUI select the Ninja generator and leave the toggle Use default native compilers on.

Previous

This article was written by Lars Bilke. If you are missing something or you find an error please let us know. Generated with Hugo 0.54.0. Last revision: March 5, 2019