Update floating point compilation options
parent
56751882e6
commit
3f7bd9c13e
|
@ -6,6 +6,6 @@ function(EnableFastMath flag)
|
|||
if(MSVC)
|
||||
add_compile_options("/fp:fast")
|
||||
else()
|
||||
add_compile_options("-ffast-math")
|
||||
add_compile_options("-ffast-math -fno-finite-math-only")
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
if (NOT HAVE_FLOAT_CHARCONV)
|
||||
if(NOT HAVE_FLOAT_CHARCONV)
|
||||
set(CELCOMPAT_SOURCES
|
||||
charconv_impl.cpp
|
||||
charconv_impl.h
|
||||
)
|
||||
endif()
|
||||
|
||||
if (CELCOMPAT_SOURCES)
|
||||
if(CELCOMPAT_SOURCES)
|
||||
add_library(celcompat OBJECT ${CELCOMPAT_SOURCES})
|
||||
if(NOT MSVC)
|
||||
target_compile_options(celcompat PRIVATE -fmath-errno)
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue