Software Alternatives & Reviews

Ninja Build VS CMake

Compare Ninja Build VS CMake and see what are their differences


Ninja is a small build system with a focus on speed.

CMake is an open-source, cross-platform family of tools designed to build, test and package software.
Ninja Build Landing Page
Ninja Build Landing Page
CMake Landing Page
CMake Landing Page

We recommend LibHunt CMake for discovery and comparisons of trending CMake projects.

Ninja Build details

Categories
Continuous Integration Product Deployment Java Build Tools
Website ninja-build.org  

CMake details

Categories
Continuous Integration Product Deployment DevOps Tools
Website cmake.org  

Ninja Build videos

FORTNITE STW: HERE IS THE BEST NINJA BUILD (AFTER MONTHS OF TESTING)

CMake videos

CMake for Dummies

More videos:

  • - CppCon 2017: Mathieu Ropert “Using Modern CMake Patterns to Enforce a Good Modular Design”
  • - Hunter, a CMake driven package manager for C/C++ projects - Daniel Friedrich - Lightning Talks

Category Popularity

0-100% (relative to Ninja Build and CMake)
40
40%
60%
60
38
38%
62%
62
63
63%
37%
37
24
24%
76%
76

Social recommendations and mentions

Based on our record, CMake should be more popular than Ninja Build. It has been mentiond 21 times since March 2021. We are tracking product recommendations and mentions on Reddit, HackerNews and some other platforms. They can help you identify which product is more popular and what people think of it.

Ninja Build mentions (7)

  • Hacktoberfest 4
    The first I worked on was ElectionGuard, which is an SDK that performs ballot encryption and verification functions for digital elections. I've been trying to build it for a few days now but had been unsuccessful so far. I started by installing GNU Make, Chocolatey, and MSYS2. I went through a lot of trial and error with CMake, including erroneously thinking my build worked when I searched for a .sln and found an... - Source: dev.to / 3 months ago
  • My note-taking process
    Ninja — build system similar to make. - Source: dev.to / 3 months ago
  • Cmake alterntives
    The build can be faster if you use Ninja instead of make. Ninja was designed for speed and to have its input files be generated by programs instead of hand-written. If a project is already just using make, simply changing the generator to Ninja cmake -G Ninja will probably result in faster builds. - Source: Reddit / 5 months ago
  • Is there a statically typed functional programming language that doesn't take purity so seriously?
    * BuckleScript/ReScript works by forking the OCaml compiler and has been stuck on years-out-of-date versions of it as a result. Works well but you miss out on some nice stuff that's been done the past few years. Melange is trying to fix some of that by splitting out the compiler changes in a way that lets it keep up with recent compiler versions, plus eventually replace its odd custom Ninja-based build system... - Source: Reddit / 8 months ago
  • How do you build your source code?
    We use ninja - a very small and fast build system. Ninja generally needs something to generate its build files (CMake, Meson, etc.), but we just use a little Python script to generate ours. - Source: Reddit / 9 months ago
View more

CMake mentions (21)

  • With Rust's Crate feature wherein you can add dependencies to your code, what is it's equivalent in C?
    Git submodules can kinda maybe help out, though you'll still have to do a lot of stuff manually. As others have suggested, CMake is one of the more sanity-preserving ways of doing said manual stuff. - Source: Reddit / 12 days ago
  • Compiling on gnu/linux with g++ need help.
    If you wanted to just give other folks your source code, is in, say, create a github repo with your source, consider using a toolchain - a fancy suite of software designed to point gcc et al in the right direction when the other user wants to build your source into an executable. I would highly recommend cmake, as most "package managers" for c++(vcpkg, msys2) will already be "set up" to use cmake out-of-the-box. - Source: Reddit / about 1 month ago
  • How to Package a Project with conan
    For this week's lab I packaged my GAS-ssg using conan and CMake. - Source: dev.to / about 2 months ago
  • First time using Conan to release software
    Firstly, I have to ensure that I have CMake and Conan installed on my machine. - Source: dev.to / about 2 months ago
  • Hacktoberfest 5
    CPM.cmake I have used peripherally while working on ElectionGuard, and my professor flagged this issue as one I could work on, but again I'm having a hard time grasping the logic of how this program works to start working on it. As I understand it, it's a script that CMake runs to get dependencies, similar to vcpkg. It's essentially just one script that interacts with CMake so I guess it can't be that hard to... - Source: dev.to / 3 months ago
View more

What are some alternatives?

When comparing Ninja Build and CMake, you can also consider the following products

SCons - SCons is an Open Source software construction tool—that is, a next-generation build tool.

GNU Make - GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.

Meson - Meson is an open source build system meant to be both extremely fast, and, even more importantly...

SBT - SBT is a build tool for Scala, like Ant or Maven but with hieroglyphics.

Gradle - Accelerate developer productivity. Gradle helps teams build, automate and deliver better software, faster. DocsExplore the documentation of Gradle. Find installation ..

Autoconf - GNU Autoconf is a tool for producing configure scripts for building, installing and packaging...

User reviews

Share your experience with using Ninja Build and CMake. For example, how are they different and which one is better?

Post a review