]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: use Ninja by default
authorRoss Burton <ross.burton@intel.com>
Thu, 18 Jan 2018 12:11:38 +0000 (12:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Jan 2018 12:18:04 +0000 (12:18 +0000)
This changes the cmake class to use Ninja instead of Make by default.

If a recipe is broken with Ninja then the recipe can set OECMAKE_GENERATOR="Unix
Makefiles" to change back to Make.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/cmake.bbclass

index 74a952142ff822e2f578c7a9eaf4fbabf2fe35a2..d60dad8d66bd2fa60d3808d6ce17f1520c995246 100644 (file)
@@ -9,7 +9,7 @@ CCACHE = ""
 
 # What CMake generator to use.
 # The supported options are "Unix Makefiles" or "Ninja".
-OECMAKE_GENERATOR ?= "Unix Makefiles"
+OECMAKE_GENERATOR ?= "Ninja"
 
 python() {
     generator = d.getVar("OECMAKE_GENERATOR")