2022-05-06 09:49:46 +00:00
|
|
|
include_guard(GLOBAL)
|
|
|
|
|
|
|
|
|
2021-12-20 09:26:44 +00:00
|
|
|
function(myx_cmake_enable_high_precision_math)
|
2021-12-20 08:22:34 +00:00
|
|
|
find_package(Quadmath)
|
|
|
|
if(QUADMATH_FOUND)
|
|
|
|
add_definitions(-DHAVE_QUADMATH=1)
|
2021-12-08 11:32:04 +00:00
|
|
|
else()
|
2021-12-20 08:22:34 +00:00
|
|
|
find_package(MPFR)
|
|
|
|
if(MPFR_FOUND)
|
|
|
|
find_package(MPFRCppThirdparty)
|
|
|
|
else()
|
2021-12-21 10:45:09 +00:00
|
|
|
myx_cmake_message_error("MyxCMake: Nor Quadmath, nor MPFR found.")
|
2021-12-20 08:22:34 +00:00
|
|
|
endif()
|
2021-12-08 11:32:04 +00:00
|
|
|
endif()
|
2021-12-20 08:22:34 +00:00
|
|
|
endfunction()
|