COMP: change ordering of statements to prevent premature termination after make

COMP: VTK- prefix not being trimmed from the name
This commit is contained in:
Mark Olesen
2017-09-18 13:40:49 +02:00
parent c0de94d846
commit 51435f2e56
2 changed files with 3 additions and 2 deletions

View File

@ -169,11 +169,12 @@ makeVTK()
cd $VTK_BUILD_DIR || exit 1 # Change to build folder
echo " Starting make"
time make -j $WM_NCOMPPROCS
echo " Done make"
# Remove lib if it is a link
# (how this was previously handled before 'make install' worked)
[ -L lib ] && rm -f lib 2>/dev/null
echo " Done make" # Last statement for clean return code
}

View File

@ -54,7 +54,7 @@ unset vtk_version mesa_version # Purge current values
# vtk version from OpenFOAM etc/config.sh file:
_foamEtc config.sh/vtk
VTK_VERSION=$vtk_version
VTK_VERSION="${vtk_version##*-}" # Without prefix
# New rendering backend (starting with vtk 7?).
withGL2=auto # auto-config based on version