12 lines
188 B
CMake
12 lines
188 B
CMake
|
function(EnableFastMath flag)
|
||
|
if(NOT flag)
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
if(MSVC)
|
||
|
add_compile_options("/fp:fast")
|
||
|
else()
|
||
|
add_compile_options("-ffast-math")
|
||
|
endif()
|
||
|
endfunction()
|