Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / utilities / postProcessing / graphics / PV4FoamReader / Allwmake
blob9c596d5aa6670b5749b2aed467479ea1c8ae8d87
1 #!/bin/bash
2 cd ${0%/*} || exit 1 # run from this directory
3 set -x
5 if [ -d "$PARAVIEW_DIR" -a -r "$PARAVIEW_DIR" ]
6 then
7 case "$PARAVIEW_VERSION" in
8 4*)
9 wmake libso vtkPV4Foam
11 cd PV4FoamReader
12 mkdir -p Make/$WM_OPTIONS > /dev/null 2>&1
13 cd Make/$WM_OPTIONS
14 cmake ../..
15 if [ "$WM_ARCH_BASE" == "darwin" ]
16 then
17 sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV4FoamReader.dir/link.txt
18 sed -i bak -e 's/-dynamiclib /& -undefined dynamic_lookup /' CMakeFiles/PV4FoamReader_SM.dir/link.txt
20 make
23 esac
26 # ----------------------------------------------------------------- end-of-file