message: Specify adios2_DIR when generating adios2-config
diff: @@ -55,10 +55,10 @@ function flag_diff() {
  }
  function prefixify() {
  - echo "$@" | sed "s|${adios2_DIR}|\${ADIOS2_PREFIX}|g"
  + echo "$@" | sed "s|${PREFIX}|\${ADIOS2_PREFIX}|g"
  }
  -export adios2_DIR="${DESTDIR}$1"
  +PREFIX="${DESTDIR}$1"
  shift
  CMAKE="@CMAKE_COMMAND@"
  SOURCE_DIR="@ADIOS2_SOURCE_DIR@/cmake/install/post/adios2-config-dummy"
  @@ -78,6 +78,7 @@ then
  export FC="@MPI_Fortran_COMPILER@"
  fi
  +EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS} -Dadios2_DIR=${PREFIX}/@CMAKE_INSTALL_CMAKEDIR@"
  if [ -n "@CMAKE_PREFIX_PATH@" ]
  then
  EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS} -DCMAKE_PREFIX_PATH=@CMAKE_PREFIX_PATH@"
  @@ -166,7 +167,7 @@ then
  BINDIR="@CMAKE_INSTALL_BINDIR@"
  else
  # relative path
  - BINDIR="${adios2_DIR}/@CMAKE_INSTALL_BINDIR@"
  + BINDIR="${PREFIX}/@CMAKE_INSTALL_BINDIR@"
  fi
  echo "Writing ${BINDIR}/adios2-config@ADIOS2_EXECUTABLE_SUFFIX@"
  