Handle potential pkg-config failures

There are cases where we want to use an MPI provider, but the package is
not installed in the system, so `pkg-config` can't find it.
To solve this simply ignore the errors created and only print something
if the user asks us to by passing `V=1`.

Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel 2024-12-11 11:57:08 +01:00
parent 54a16fb672
commit 87ff205c8b
2 changed files with 11 additions and 9 deletions

View file

@ -13,9 +13,11 @@ endif
ifeq ($V,1)
silent=
silent_stdout=
silent_stderr=
else
silent=@
silent_stdout= > /dev/null
silent_stderr= 2> /dev/null
endif
PLATFORM := $(shell uname | sed -e 's/_.*//')