diff --git a/script/detect_gcc b/script/detect_gcc
index fdfede34188e83e941dd2be57c9afa5b1a544398..7ed16ad3a9d4135f8bf9d050a5645b51fe87e279 100755
--- a/script/detect_gcc
+++ b/script/detect_gcc
@@ -149,8 +149,8 @@ function detect_compiler()
         else
           echo -e "icpc $dgc_major.$dgc_middle.$dgc_minor \033[92;1m SUCCESS \033[0m"
           dgc_compiler=icpc
-          dgc_ret=0
-          icpc_found=0
+          dgc_ret=1
+          icpc_found=1
         fi
     fi