2020-03-02 08:56:46 -07:00
|
|
|
function(EnableFastMath flag)
|
|
|
|
if(NOT flag)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
add_compile_options("/fp:fast")
|
|
|
|
else()
|
2022-01-08 04:45:52 -07:00
|
|
|
add_compile_options("-ffast-math -fno-finite-math-only")
|
2020-03-02 08:56:46 -07:00
|
|
|
endif()
|
|
|
|
endfunction()
|