Skip to content

Commit

Permalink
Fix destdir install test (#3850)
Browse files Browse the repository at this point in the history
* Fix usage of DESTDIR for absolute paths

* Update cmake/install/post/generate-adios2-config.sh.in

---------

Co-authored-by: Tilman Dannert <dannert@rzg.mpg.de>
  • Loading branch information
vicentebolea and Tilman Dannert authored Oct 18, 2023
1 parent 975e8de commit 861ccb7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/install/post/generate-adios2-config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ if [ "${1:0:1}" != "/" ]
then
# Convert relative paths to absolute based on DESTDIR
PREFIX="${DESTDIR:-$(pwd)}/$1"
else
# check if the PREFIX directory exists and prepend DESTDIR if not
if [ ! -d "${PREFIX}" ]
then
PREFIX="${DESTDIR}$1"
fi
fi

shift
Expand Down

0 comments on commit 861ccb7

Please sign in to comment.