From 16907b5fb383a419bf2dc1a5f73875f08639c3a2 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 15 Aug 2018 08:02:58 +0200
Subject: [PATCH] [cmake] Fix intel compiler warnings

---
 scripts/cmake/CompilerSetup.cmake | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/cmake/CompilerSetup.cmake b/scripts/cmake/CompilerSetup.cmake
index fe6a9672d88..85513997827 100644
--- a/scripts/cmake/CompilerSetup.cmake
+++ b/scripts/cmake/CompilerSetup.cmake
@@ -47,9 +47,13 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
     add_compile_options(
         -Wall
         -Wextra
-        -Wno-c++98-compat-pedantic
         -DOPENMP_LOOP_TYPE=unsigned
     )
+    if(NOT COMPILER_IS_INTEL)
+        add_compile_options(
+            -Wno-c++98-compat-pedantic
+        )
+    endif()
 
     # Profiling
     if(OGS_PROFILE)
-- 
GitLab