diff --git a/applications/Allwmake b/applications/Allwmake index 2a922d6ae5ff1466f44a89181b49c295bc525561..23c5ebbae06bec2fffbe867684d8b92ac8376a2b 100755 --- a/applications/Allwmake +++ b/applications/Allwmake @@ -20,8 +20,8 @@ wmakeCheckPwd "$WM_PROJECT_DIR/applications" || { set -x -wmake -all utilities $* wmake -all solvers $* +wmake -all utilities $* #------------------------------------------------------------------------------ diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake index aa7ed7cc7e98bbed6f7f9c8a58be44e65f5a215f..ac922556213eca1cd23dc21458e873092c2d4437 100755 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake @@ -11,18 +11,38 @@ sourceDir=$PWD findObjectDir dummy.C depDir="$objectsDir" -if [ -d "$VTK_DIR" -o -d "$ParaView_DIR" ] +echo +echo "======================================================================" +echo "${PWD##*/} : $PWD" +echo + +if [ -d "$VTK_DIR" -o -d "$ParaView_DIR" ] then # ensure CMake gets the correct C++ compiler [ -n "$WM_CXX" ] && export CXX="$WM_CXX" [ -n "$WM_CC" ] && export CC="$WM_CC" - (mkdir -p $depDir && cd $depDir && cmake $sourceDir && make) + if type cmake > /dev/null 2>&1 + then + ( + mkdir -p $depDir \ + && cd $depDir \ + && cmake $sourceDir \ + && make + ) || { + echo + echo "WARNING: incomplete build of VTK-based post-processing" + } + else + echo "WARNING: skipped - needs cmake" + fi else - echo "ERROR: Build of $PWD requires a valid VTK installation which" - echo " can be supplied either by ParaView by VTK. In case of" - echo " - ParaView : export the ParaView_DIR environment variable" - echo " - VTK : export the VTK_DIR variable" + 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 "======================================================================" +echo + # ----------------------------------------------------------------- end-of-file