Skip to content

Commit

Permalink
Disable -march=native for OGDF
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Jul 15, 2022
1 parent 7e872e0 commit f3ca6e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thirdparty/ogdf/cmake/compiler-specifics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ if(MSVC)
endif()

# use native arch (ie, activate things like SSE)
check_cxx_compiler_flag(-march=native COMPILER_SUPPORTS_MARCH_NATIVE)
if(COMPILER_SUPPORTS_MARCH_NATIVE)
# cannot use add_definitions() here because it does not work with check-sse3.cmake
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()
#check_cxx_compiler_flag(-march=native COMPILER_SUPPORTS_MARCH_NATIVE)
#if(COMPILER_SUPPORTS_MARCH_NATIVE)
# # cannot use add_definitions() here because it does not work with check-sse3.cmake
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
#endif()

# set default warning flags for OGDF and tests
set(available_default_warning_flags "")
Expand Down

0 comments on commit f3ca6e0

Please sign in to comment.