mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-15 18:38:23 +01:00
Define option to toggle '-ffast-math'
This commit is contained in:
parent
f0d680ea55
commit
90b4d1b6af
@ -18,5 +18,15 @@ set(CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
|
|||||||
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel GenericOpt."
|
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel GenericOpt."
|
||||||
FORCE)
|
FORCE)
|
||||||
|
|
||||||
|
option(USE_UNSAFE_MATH_OPT
|
||||||
|
"Use compiler options to break IEEE compliances by
|
||||||
|
oenabling reordering of instructions when adding/multiplying of floating
|
||||||
|
points."
|
||||||
|
OFF)
|
||||||
|
|
||||||
|
if(USE_UNSAFE_MATH_OPT)
|
||||||
|
add_compile_options(-ffast-math)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(app)
|
add_subdirectory(app)
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user