Enable the fast-math equivalent of MSVC
This commit is contained in:
parent
9142aaed7b
commit
a0e6abceda
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ endif()
|
||||||
function(sfizz_enable_fast_math NAME)
|
function(sfizz_enable_fast_math NAME)
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
||||||
target_compile_options("${NAME}" PRIVATE "-ffast-math")
|
target_compile_options("${NAME}" PRIVATE "-ffast-math")
|
||||||
|
elseif(MSVC)
|
||||||
|
target_compile_options("${NAME}" PRIVATE "/fp:fast")
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue