diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake b/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake index b34e11bf4b66bf5c601e174dd18c639ba4017328..9d0fcb58615a368ab594ca2539239d10117b5c40 100755 --- a/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake +++ b/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake @@ -47,7 +47,8 @@ case "$ParaView_VERSION" in if canBuildPlugin then ( - # C++ compiler for CMake + # ensure CMake gets the correct C/C++ compilers + [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" wmake $targetType vtkPV3Readers diff --git a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake index 76a3697c6cd841f7fce70e4f2cfa9c8cd9b879e9..d678a785ff20157c5c335d27bd0371aab552c081 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake @@ -47,7 +47,8 @@ case "$ParaView_VERSION" in if canBuildPlugin then ( - # C++ compiler for CMake + # ensure CMake gets the correct C/C++ compilers + [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" wmake $targetType vtkPVReaders diff --git a/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/Allwmake b/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/Allwmake index 313fdd2410e505cc1169e735199ff4a6d9725ffd..6304c4545f985f39a5c69f4cc4884c13463db169 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVReaders/PVFoamReader/Allwmake @@ -8,7 +8,8 @@ targetType=libso # Source the wmake functions . $WM_DIR/scripts/wmakeFunctions -# C++ compiler for CMake +# ensure CMake gets the correct C/C++ compilers +[ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" set -x diff --git a/applications/utilities/postProcessing/graphics/PVReaders/PVblockMeshReader/Allwmake b/applications/utilities/postProcessing/graphics/PVReaders/PVblockMeshReader/Allwmake index 76297f13a2865b421cfa64c5af324c6462b69286..29b4aa8c5b6441259f685053c738c7f3238fb786 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/PVblockMeshReader/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVReaders/PVblockMeshReader/Allwmake @@ -8,7 +8,8 @@ targetType=libso # Source the wmake functions . $WM_DIR/scripts/wmakeFunctions -# C++ compiler for CMake +# ensure CMake gets the correct C/C++ compilers +[ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" set -x diff --git a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake index 727f9a20aad94815e224120463f47973a7104a77..277a8c394f6f36ad02f89b0bab074c3f8121925e 100755 --- a/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake +++ b/src/postProcessing/functionObjects/graphics/runTimePostProcessing/Allwmake @@ -18,9 +18,9 @@ echo if [ -d "$VTK_DIR" -o -d "$ParaView_DIR" ] then - # ensure CMake gets the correct C++ compiler + # ensure CMake gets the correct C/C++ compilers + [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" - [ -n "$WM_CC" ] && export CC="$WM_CC" if type cmake > /dev/null 2>&1 then