Skip to content

Commit

Permalink
Fix destdir install test (ornladios#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>
(cherry picked from commit 861ccb7)
  • Loading branch information
vicentebolea committed Oct 19, 2023
1 parent a63ec1d commit d545c70
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 d545c70

Please sign in to comment.