Commit 89b30843 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

cmake: Pass CMAKE_PREFIX_PATH to adios2-config generation

parent 6b6fdea6
......@@ -59,6 +59,7 @@ function prefixify() {
}
export adios2_DIR="${DESTDIR}$1"
shift
CMAKE="@CMAKE_COMMAND@"
SOURCE_DIR="@ADIOS2_SOURCE_DIR@/cmake/install/post/adios2-config-dummy"
BUILD_DIR=$(mktemp -d)
......@@ -77,6 +78,11 @@ then
export FC="@MPI_Fortran_COMPILER@"
fi
if [ -n "@CMAKE_PREFIX_PATH@" ]
then
EXTRA_CMAKE_ARGS="${EXTRA_CMAKE_ARGS} -DCMAKE_PREFIX_PATH=@CMAKE_PREFIX_PATH@"
fi
echo "Configuring adios2-config dummy CMake project"
if ! ${CMAKE} -G "Unix Makefiles" ${SOURCE_DIR} ${EXTRA_CMAKE_ARGS}
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment