Skip to content

Commit

Permalink
Remove hard-coded -march=native (#233)
Browse files Browse the repository at this point in the history
If users want to have native code, the flag should be passed from the command line to CMake configure (e.g. cmake -DCMAKE_CXX_FLAGS="-march=native").
  • Loading branch information
havogt authored Jan 13, 2020
1 parent 512c27d commit 7fd4d64
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ include(SerialboxCheckCxxCompilerSupport)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Shared architecture flags
if( NOT ( CMAKE_CXX_COMPILER_ID MATCHES "Cray" ) )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()

# Compiler specific
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare")
Expand Down

0 comments on commit 7fd4d64

Please sign in to comment.