From 8c9a9309d0bd813c2192ba0a7d65e9d1a91f16bd Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Wed, 26 Jul 2017 02:15:55 +0200
Subject: [PATCH] Fixing detection of gcc

---
 script/detect_gcc | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/script/detect_gcc b/script/detect_gcc
index aab7f4a5..ca60c17f 100755
--- a/script/detect_gcc
+++ b/script/detect_gcc
@@ -223,8 +223,16 @@ function detect_compiler()
           gpp_clang
         fi
         dgc_ret=1
-    else
+    elif [ $gpp_found -eq 1 ]; then
         gpp_clang
+    elif [ $icpc_found -eq 1 ]; then
+          CXX=icpc
+          CC=icc
+          F77=ifort
+          FC=ifort
+          dgc_compiler=icpc
+    else
+          echo "No compiler found"
     fi
 }
 
-- 
GitLab