From 27796b431ee5ceea3c2fe7409daab4297e3da862 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 18 Oct 2016 15:32:20 -0400 Subject: [PATCH] avoid distracting error output --- lib/netcdf/Makefile.lammps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netcdf/Makefile.lammps b/lib/netcdf/Makefile.lammps index 040df73fd0..73dfa54c3c 100644 --- a/lib/netcdf/Makefile.lammps +++ b/lib/netcdf/Makefile.lammps @@ -6,12 +6,12 @@ netcdf_SYSINC = netcdf_SYSLIB = netcdf_SYSPATH = -ifneq ($(shell which nc-config),) +ifneq ($(shell which nc-config 2>> /dev/null),) netcdf_SYSINC += -DLMP_HAS_NETCDF $(shell nc-config --cflags) netcdf_SYSLIB += $(shell nc-config --libs) endif -ifneq ($(shell which ncmpidump),) +ifneq ($(shell which ncmpidump 2>> /dev/null),) PNETCDF_PATH = ($shell which ncmpidump | sed -e 's,bin/ncmpidump,,') netcdf_SYSINC = -DLMP_HAS_PNETCDF -I$(PNETCDF_PATH)/include netcdf_SYSLIB = -lpnetcdf