Merge pull request #567 from jpcima/fp-fast

Enable the fast-math equivalent of MSVC
This commit is contained in:
JP Cimalando 2020-11-29 18:10:09 +01:00 committed by GitHub
commit 859092bc99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,8 @@ endif()
function(sfizz_enable_fast_math NAME)
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options("${NAME}" PRIVATE "-ffast-math")
elseif(MSVC)
target_compile_options("${NAME}" PRIVATE "/fp:fast")
endif()
endfunction()