Patch contributed by Bruno Santos Resolved bug-report http://www.openfoam.org/mantisbt/view.php?id=2042
34 lines
880 B
Bash
Executable File
34 lines
880 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Parse arguments for library compilation
|
|
targetType=libso
|
|
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
|
|
#set -x
|
|
|
|
case "$ParaView_VERSION" in
|
|
4* | 5*)
|
|
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
|
|
then
|
|
[ -n "$PV_PLUGIN_PATH" ] || {
|
|
echo "$0 : PV_PLUGIN_PATH not valid - it is unset"
|
|
exit 1
|
|
}
|
|
|
|
# ensure CMake gets the correct C++ compiler
|
|
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
|
|
|
|
wmake $targetType vtkPVReaders
|
|
PVblockMeshReader/Allwmake $*
|
|
PVFoamReader/Allwmake $*
|
|
else
|
|
echo "ERROR: ParaView not found in $ParaView_DIR"
|
|
fi
|
|
;;
|
|
*)
|
|
echo "WARN: PV readers not building: ParaView_VERSION=$ParaView_VERSION"
|
|
;;
|
|
esac
|
|
|
|
#------------------------------------------------------------------------------
|