Permalink
Browse files

Add: -ffast-math compiler option to anything other then Intel

  • Loading branch information...
AreaScout committed Sep 11, 2018
1 parent fd6c314 commit 468c508b3a92f5e625ef7c5d1ba77094724234a5
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 468c508

Please sign in to comment.