From 4e1a0cc48ca7c4654bcdc8f1915fb5001cf1f75b Mon Sep 17 00:00:00 2001
From: Konstantin Kutscher <kutscher@irmb.tu-bs.de>
Date: Thu, 27 Aug 2020 14:50:24 +0200
Subject: [PATCH] fix compiler flags issue in icc190.cmake

---
 CMake/compilerflags/icc190.cmake | 37 ++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 CMake/compilerflags/icc190.cmake

diff --git a/CMake/compilerflags/icc190.cmake b/CMake/compilerflags/icc190.cmake
new file mode 100644
index 000000000..31c179617
--- /dev/null
+++ b/CMake/compilerflags/icc190.cmake
@@ -0,0 +1,37 @@
+###############################################################################################################
+## 
+##  intel190 
+##
+###############################################################################################################
+
+MACRO(SET_COMPILER_SPECIFIC_FLAGS_INTERN build_type use64BitOptions)
+   # auto_ptr warning from mu::Parser
+   LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-wd1478") 
+
+   # main intel compiler flags as CMake-list ("xx;yy;")
+   LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-xHOST;-O3;-ip;-fno-alias;-mcmodel=medium;-qopt-streaming-stores=always;-qopt-zmm-usage=high") 
+   
+   #Debug
+   #LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-g -traceback")
+   
+   ###############################################################################################################
+   ## OpenMP support
+   ###############################################################################################################
+   IF(USE_OPENMP)
+   	LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-qopenmp")
+      LIST(APPEND CAB_ADDITIONAL_LINK_FLAGS "-parallel")
+   ENDIF()
+
+   ###############################################################################################################
+   ## mt support
+   ###############################################################################################################
+   #LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-pthread")
+   #LIST(APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS "-pthread")
+   
+   #############################################################################################################
+   # c++ 11 support
+   #############################################################################################################
+   LIST(APPEND CAB_COMPILER_ADDTIONAL_CXX_COMPILER_FLAGS "-std=c++11")
+   LIST(APPEND CAB_COMPILER_ADDTIONAL_C_COMPILER_FLAGS "-std=c++11")
+
+ENDMACRO(SET_COMPILER_SPECIFIC_FLAGS_INTERN build_type use64BitOptions)
-- 
GitLab