Permalink
Browse files

Merge pull request #11382 from AreaScout/compile_option

Add: -ffast-math compiler option to anything other then Intel
  • Loading branch information...
hrydgard committed Sep 12, 2018
2 parents 6ffa5bd + 468c508 commit 6d0ed4ad0700030f6e80b1f6a420b8983624e93d
Showing with 2 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
View
@@ -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)

0 comments on commit 6d0ed4a

Please sign in to comment.