From a80f38bdf5e742ef0f41918702bb0221ba69c3fd Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Fri, 11 Jul 2014 11:12:46 +0100
Subject: [PATCH] ENH: cshrc: make foamCompiler environment variable so can be
 set through command line

---
 etc/config/settings.csh | 3 ++-
 etc/cshrc               | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/etc/config/settings.csh b/etc/config/settings.csh
index dad1d03f7ea..d817b428bb7 100644
--- a/etc/config/settings.csh
+++ b/etc/config/settings.csh
@@ -542,6 +542,7 @@ endif
 # cleanup environment:
 # ~~~~~~~~~~~~~~~~~~~~
 #- keep _foamAddPath _foamAddLib _foamAddMan
-unset foamCompiler minBufferSize
+unset minBufferSize
+unsetenv foamCompiler
 
 # ----------------------------------------------------------------- end-of-file
diff --git a/etc/cshrc b/etc/cshrc
index 06d5922c7c3..df902347921 100644
--- a/etc/cshrc
+++ b/etc/cshrc
@@ -57,8 +57,8 @@ set foamInstall = $HOME/$WM_PROJECT
 if ( ! $?FOAM_INST_DIR ) setenv FOAM_INST_DIR $foamInstall
 
 #- Compiler location:
-#    foamCompiler= system | ThirdParty (OpenFOAM)
-set foamCompiler=system
+#    foamCompiler = system | ThirdParty (OpenFOAM)
+setenv foamCompiler system
 
 #- Compiler:
 #    WM_COMPILER = Gcc | Gcc45 | Gcc46 | Gcc47 | Clang | Icc (Intel icc)
-- 
GitLab