myx-cmake/MyxCMake/functions/MyxCMakeHighPrecisionMath.cmake

14 lines
327 B
CMake
Raw Normal View History

function(myx_cmake_enable_high_precision_math)
find_package(Quadmath)
if(QUADMATH_FOUND)
add_definitions(-DHAVE_QUADMATH=1)
2021-12-08 11:32:04 +00:00
else()
find_package(MPFR)
if(MPFR_FOUND)
find_package(MPFRCppThirdparty)
else()
message(FATAL_ERROR "Nor Quadmath, nor MPFR found.")
endif()
2021-12-08 11:32:04 +00:00
endif()
endfunction()