From 859a8eb9df4651667d5b4511860ce3fa389c1494 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Sat, 11 Dec 2021 13:48:30 +0000
Subject: [PATCH] MNT: Suppress stderr if nvcc is not found

---
 config/buildSettings.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/buildSettings.mk b/config/buildSettings.mk
index 6876b77..a090a61 100644
--- a/config/buildSettings.mk
+++ b/config/buildSettings.mk
@@ -176,7 +176,7 @@ endif
 # CUDA projects. nvcc must be on the $PATH, or $NVCC must be set.
 #
 #####################################################################
-NVCC ?= $(shell which nvcc)
+NVCC ?= $(shell which nvcc 2> /dev/null)
 ifneq (${NVCC}, )
 
   # NVCC, GENCODEFLAGS, NVCCFLAGS, NVCCLDFLAGS,
-- 
GitLab