diff --git a/etc/config/settings.csh b/etc/config/settings.csh
index dad1d03f7ea2e838ea89234c9b44dbe0e123c255..d817b428bb712f7301f7521ab945e39407aa6bfc 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 06d5922c7c3af02ede403f8f6c140a8ca8511ba4..df9023479219d6ce7e30bc3df0627bdb79ed0305 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)