This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/postProcessing/graphics/PV4FoamReader/Allwmake

27 lines
726 B
Text
Raw Normal View History

#!/bin/bash
cd ${0%/*} || exit 1 # run from this directory
set -x
if [ -d "$PARAVIEW_DIR" -a -r "$PARAVIEW_DIR" ]
then
case "$PARAVIEW_VERSION" in
4*)
wmake libso vtkPV4Foam
(
cd PV4FoamReader
mkdir -p Make/$WM_OPTIONS > /dev/null 2>&1
cd Make/$WM_OPTIONS
cmake ../..
if [ "$WM_ARCH_BASE" == "darwin" ]
then
sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV4FoamReader.dir/link.txt
sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV4FoamReader_SM.dir/link.txt
fi
make
)
;;
esac
fi
# ----------------------------------------------------------------- end-of-file