From 46085ad71232e9ae19666bd7ca499e95d1780c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <1289205+lahwaacz@users.noreply.github.com> Date: Sun, 17 Nov 2024 09:08:45 +0100 Subject: [PATCH] Fix DESTDIR installation Fixes https://github.com/ornladios/ADIOS2/issues/3941 --- cmake/install/post/generate-adios2-config.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/install/post/generate-adios2-config.sh.in b/cmake/install/post/generate-adios2-config.sh.in index 1c5139367b..a789810da4 100755 --- a/cmake/install/post/generate-adios2-config.sh.in +++ b/cmake/install/post/generate-adios2-config.sh.in @@ -65,8 +65,8 @@ 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}" ] + # Check if the DESTDIR directory exists and prepend it to PREFIX + if [ -d "${DESTDIR}" ] then PREFIX="${DESTDIR}$1" fi