diff --git a/CMakeLists.txt b/CMakeLists.txt index 48b77de..98383a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ include(ConfigureChecks.cmake) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # using Clang - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -mtune=native -pedantic -stdlib=libc++") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -stdlib=libc++") elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # using G++ @@ -42,7 +42,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") message(FATAL_ERROR "G++ 5.1 or higher required") endif() - set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -march=native -mtune=native -pedantic -Wno-variadic-macros" ) + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wno-variadic-macros" ) elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # using Visual Studio