Skip to content

Commit

Permalink
using ducc with fast-match
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamonDinoia committed Jul 31, 2024
1 parent efc62a6 commit d390319
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/setupDUCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ if(ducc0_ADDED)
ducc0
PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>"
POSITION_INDEPENDENT_CODE ${FINUFFT_SHARED_LINKING})
check_cxx_compiler_flag(-ffast-math HAS_FAST_MATH)
if(HAS_FAST_MATH)
target_compile_options(ducc0 PRIVATE -ffast-math)
endif()
check_cxx_compiler_flag(/fp:fast HAS_FP_FAST)
if(HAS_FP_FAST)
target_compile_options(ducc0 PRIVATE /fp:fast)
endif()
if(NOT OpenMP_CXX_FOUND)
find_package(Threads REQUIRED)
target_link_libraries(ducc0 PRIVATE Threads::Threads)
Expand Down

0 comments on commit d390319

Please sign in to comment.