diff --git a/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake b/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake index 60fdc4918c..13c63f7b0d 100755 --- a/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake +++ b/applications/utilities/postProcessing/graphics/PV3Readers/Allwmake @@ -14,7 +14,8 @@ case "$ParaView_VERSION" in exit 1 } - # 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" wmake $targetType vtkPV3Readers diff --git a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake index 85bd2040d1..3be5a4ecb6 100755 --- a/applications/utilities/postProcessing/graphics/PVReaders/Allwmake +++ b/applications/utilities/postProcessing/graphics/PVReaders/Allwmake @@ -14,7 +14,8 @@ case "$ParaView_VERSION" in exit 1 } - # 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" wmake $targetType vtkPVReaders