estén la detecció de Ninja a Linux/macOS
This commit is contained in:
1 parent
bc5a6abf53
commit
f0c118e6fa
1 file changed
+7
@@ -27,7 +27,14 @@ ifeq ($(OS),Windows_NT)
|
|||||||
else
|
else
|
||||||
NULDEV := /dev/null
|
NULDEV := /dev/null
|
||||||
JOBS ?= $(shell nproc 2>/dev/null || echo 4)
|
JOBS ?= $(shell nproc 2>/dev/null || echo 4)
|
||||||
|
# Si Ninja està al PATH, l'usem (més ràpid i paral·lelitza millor).
|
||||||
|
# Si no, deixem que CMake usi el generador per defecte (Unix Makefiles).
|
||||||
|
HAS_NINJA := $(shell ninja --version 2>/dev/null)
|
||||||
|
ifneq ($(HAS_NINJA),)
|
||||||
|
CMAKE_GEN := -G "Ninja"
|
||||||
|
else
|
||||||
CMAKE_GEN :=
|
CMAKE_GEN :=
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# VERSION (única font de veritat: source/utils/defines.hpp).
|
# VERSION (única font de veritat: source/utils/defines.hpp).
|
||||||
|
|||||||
Reference in new issue
Block a user