From 016bec1d1376c20eabd25602a086705268f34129 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Mon, 18 Sep 2017 20:42:36 +0300 Subject: [PATCH] Add march=native --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5cbdc797..3482d0b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,9 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} \ -Wall \ -Wextra \ + -march=native \ -Werror \ + -pipe \ -pedantic \ -Wunreachable-code")