From 49bce39429bef20efcdd2e222a197e3b212e8a42 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sun, 4 Sep 2016 21:05:20 +0100 Subject: [PATCH] PV*Readers/Allwmake: set CXX and CC if required Patch contributed by Bruno Santos Resolves bug-report http://bugs.openfoam.org/view.php?id=2233 --- .../utilities/postProcessing/graphics/PV3Readers/Allwmake | 3 ++- .../utilities/postProcessing/graphics/PVReaders/Allwmake | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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