From b7e58396b5d27472022ed64b1f57a02bb3c64444 Mon Sep 17 00:00:00 2001
From: Debolskiy Andrey <and.debol@gmail.com>
Date: Tue, 23 Jun 2020 01:37:09 +0300
Subject: [PATCH] added intel compiler flags

---
 CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cc82655..a204333 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,6 +82,11 @@ ENDIF()
 SET(CMAKE_REQUIRED_FLAGS "${TMP_CMAKE_REQUIRED_FLAGS}")
 ENDIF(CMAKE_COMPILER_IS_GNUCC OR APPLE)
 
+#Set some default intel flags
+IF(CMAKE_C_COMPILER_ID STREQUAL "Intel")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -restrict -no-ansi-alias")
+ENDIF()
+
 
 ADD_DEFINITIONS()
 #Fixing installation directories
-- 
GitLab