From 2ac0e4bf1cb5f6b0ef476fe5e45bc35687d6d491 Mon Sep 17 00:00:00 2001
From: henry <Henry Weller h.weller@opencfd.co.uk>
Date: Tue, 3 Jun 2008 21:51:07 +0100
Subject: [PATCH] * bin/tools/buildParaViewFunctions: replace the
 $OPENMPI_ARCH_PATH with $ENV{OPENMPI_ARCH_PATH} in the *.cmake files. Note
 this change is specific to OpenMPI and will need genaralising, Andy?

---
 bin/tools/buildParaViewFunctions | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/bin/tools/buildParaViewFunctions b/bin/tools/buildParaViewFunctions
index c7e2afe1a41..057a196c731 100755
--- a/bin/tools/buildParaViewFunctions
+++ b/bin/tools/buildParaViewFunctions
@@ -241,6 +241,12 @@ installParaView ()
             "s,$PARAVIEW_SRC_DIR,\$ENV{ParaView_INST_DIR},g" {} ';' \
             -print
 
+        if [ "$INCLUDE_MPI" = ON ]; then
+            find . -iname \*.cmake -execdir sed -i \
+                "s,$OPENMPI_ARCH_PATH,\$ENV{OPENMPI_ARCH_PATH},g" {} ';' \
+                -print
+        fi
+
         # create a softlink to the $PARAVIEW_OBJ_DIR/bin folder
         # - workaround for chosen install location
         echo "    Creating paraview $PARAVIEW_MAJOR_VERSION soft link to /bin"
-- 
GitLab