mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Eg,
librunTimePostProcessing.so
librunTimePostProcessing.so.7 -> librunTimePostProcessing.so.7.1.0
librunTimePostProcessing.so.7.1.0
- centralize handling of paraview/vtk versioning into wmake/cmakeFunctions
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source CMake functions
|
|
. $WM_PROJECT_DIR/wmake/scripts/cmakeFunctions
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
echo "======================================================================"
|
|
echo "${PWD##*/} : $PWD"
|
|
echo
|
|
|
|
unset depend
|
|
if [ -d "$VTK_DIR" ]
|
|
then
|
|
depend="VTK_DIR=$VTK_DIR"
|
|
elif [ -d "$ParaView_DIR" ]
|
|
then
|
|
depend="ParaView_DIR=$ParaView_DIR"
|
|
fi
|
|
|
|
if [ -n "$depend" ]
|
|
then
|
|
if [ "$targetType" != objects ]
|
|
then
|
|
if type cmake > /dev/null 2>&1
|
|
then
|
|
cmakeVersioned "$depend" $PWD || {
|
|
echo
|
|
echo " WARNING: incomplete build of VTK-based post-processing"
|
|
echo
|
|
}
|
|
else
|
|
echo "WARNING: skipped - needs cmake"
|
|
fi
|
|
fi
|
|
else
|
|
echo "WARNING: skipped - needs a VTK or a ParaView installation"
|
|
echo " - For ParaView : export the 'ParaView_DIR' variable"
|
|
echo " - For VTK : export the 'VTK_DIR' variable"
|
|
fi
|
|
|
|
echo "======================================================================"
|
|
|
|
# -----------------------------------------------------------------------------
|