From ace5ecd0da8b4bd36f537a2fa4cab9271c9ecc0f Mon Sep 17 00:00:00 2001
From: Svensen <ssindeev@yandex.ru>
Date: Sun, 4 Dec 2016 23:42:46 +0100
Subject: [PATCH] enable Intel compiler for ThirdParty software

---
 etc/config.csh/settings | 5 +++++
 etc/config.sh/compiler  | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/etc/config.csh/settings b/etc/config.csh/settings
index aa8243d..d9c09dc 100644
--- a/etc/config.csh/settings
+++ b/etc/config.csh/settings
@@ -246,6 +246,11 @@ case ThirdParty:
         setenv WM_CXX 'clang++'
         set clang_version=llvm-3.7.0
         breaksw
+    case Icc:
+        # Using Intel compiler
+        setenv WM_CC 'icc'
+        setenv WM_CXX 'icpc'
+        breaksw
     default:
         echo
         echo "Warning in $WM_PROJECT_DIR/etc/config.csh/settings:"
diff --git a/etc/config.sh/compiler b/etc/config.sh/compiler
index 9042a5f..8bfc0c9 100644
--- a/etc/config.sh/compiler
+++ b/etc/config.sh/compiler
@@ -63,6 +63,11 @@ OpenFOAM | ThirdParty)
         export WM_CXX='clang++'
         clang_version=llvm-3.7.0
         ;;
+    Icc)
+        # Ensuring that 3rd software uses the Icc compilers
+        export WM_CC='icc'
+        export WM_CXX='icpc'
+        ;;
     *)
         echo 1>&2
         echo "Warning in $WM_PROJECT_DIR/etc/config.sh/compiler:" 1>&2
-- 
1.9.1

