From 41392c5e2fca3a46cc967288ccb1e8c368727ca9 Mon Sep 17 00:00:00 2001 From: Nicolas PLANEL Date: Tue, 4 Feb 2025 13:05:11 +0100 Subject: build: check cmake3 command silently Avoid which shell command to output verbose errors like """ which: no cmake3 in (/usr/sbin:/sbin:/bin: ... """ Type: make Change-Id: Ib9a5fee72055b80b5e4e4c73280b19fea736c352 Signed-off-by: Nicolas PLANEL --- build/build_common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/build_common.mk b/build/build_common.mk index 88529a4537e..8f8a0a1db43 100644 --- a/build/build_common.mk +++ b/build/build_common.mk @@ -41,7 +41,7 @@ L := $(WORKSPACE)/archives/install-deps-logs $(shell rm -rf $(L) && mkdir -p $(L)) endif -ifneq ($(shell which cmake3),) +ifneq ($(shell which cmake3 2>/dev/null),) CMAKE?=cmake3 else CMAKE?=cmake -- cgit