-
Notifications
You must be signed in to change notification settings - Fork 0
Ninja
Euccas Chen edited this page Feb 13, 2018
·
2 revisions
Ninja is a build system with a focus on speed.
Reference: ninja-build.org
-
Install Ninja first
-
Generating project files
CMake -G Ninja
CMake -G Ninja -DCMAKE_MAKE_PROGRAM=/path/to/ninja
- Build Ninja
Default:
ninja -C <directory where build.ninja is>
Specify how many build commands ninja need run in parallel:
ninja -C <directory where build.ninja is> -j <number, eg. 20>
The -j option usually can be omitted, as Ninja builds in parallel by default.