Skip to content

Commit

Permalink
Merge pull request hrydgard#11382 from AreaScout/compile_option
Browse files Browse the repository at this point in the history
Add: -ffast-math compiler option to anything other then Intel
  • Loading branch information
hrydgard authored Sep 12, 2018
2 parents 6ffa5bd + 468c508 commit 6d0ed4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ if(NOT MSVC)
add_compile_options(-fno-strict-aliasing)
if (${CMAKE_C_COMPILER_ID} STREQUAL "Intel")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -parallel -fopenmp")
else()
add_compile_options(-ffast-math)
endif()

if(X86 OR X86_64)
Expand Down

0 comments on commit 6d0ed4a

Please sign in to comment.