Merge pull request #567 from jpcima/fp-fast
Enable the fast-math equivalent of MSVC
This commit is contained in:
commit
859092bc99
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue