STYLE: propogate WM_CC for CMake (fixes #226)

- reported by Bruno
This commit is contained in:
Mark Olesen
2016-09-06 16:17:20 +02:00
parent 99efe5f8d8
commit 17f0aa1db8
5 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -18,9 +18,9 @@ echo
if [ -d "$VTK_DIR" -o -d "$ParaView_DIR" ]
then
# ensure CMake gets the correct C++ compiler
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
# ensure CMake gets the correct C/C++ compilers
[ -n "$WM_CC" ] && export CC="$WM_CC"
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"
if type cmake > /dev/null 2>&1
then