From 99467caecc34b88109007e734e2bfebacdf00668 Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn <robertk@ucar.edu> Date: Mon, 19 Aug 2013 21:10:52 -0600 Subject: [PATCH] use DUNE_ADD_ALL_PKG to add flags to global flag variables. --- m4/parmetis.m4 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/m4/parmetis.m4 b/m4/parmetis.m4 index 8c15ae0f0..8e8ae242f 100644 --- a/m4/parmetis.m4 +++ b/m4/parmetis.m4 @@ -148,13 +148,12 @@ AC_DEFUN([DUNE_PATH_PARMETIS],[ This is only true if MPI was found by configure _and_ if the application uses the PARMETIS_CPPFLAGS]) AC_MSG_RESULT(ok) - - # add to global list - DUNE_PKG_LIBS="$PARMETIS_LIBS $DUNE_PKG_LIBS" - DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $PARMETIS_LDFLAGS" - DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $PARMETIS_CPPFLAGS" - - # re-set variable correctly + + # add to global list + DUNE_ADD_ALL_PKG([PARMETIS], [\${PARMETIS_CPPFLAGS}], + [\${PARMETIS_LDFLAGS}], [\${PARMETIS_LIBS}]) + + # re-set variable correctly with_parmetis="yes" else with_parmetis="no" -- GitLab