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

This commit is contained in:
AreaScout 2018-09-11 19:12:09 +00:00
parent fd6c3145d5
commit 468c508b3a

View File

@ -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)