1 if(LIBC_TESTS_CAN_USE_MPFR)
2 add_library(libcMPFRWrapper
12 libc.src.__support.CPP.string_view
13 libc.src.__support.CPP.type_traits
14 libc.src.__support.FPUtil.fp_bits
15 libc.src.__support.FPUtil.float_properties
16 libc.src.__support.FPUtil.fpbits_str
17 libc.src.__support.FPUtil.platform_defs
20 if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
21 target_include_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
22 target_link_directories(libcMPFRWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
24 target_link_libraries(libcMPFRWrapper LibcFPTestHelpers.unit LibcTest.unit mpfr gmp)
25 elseif(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
26 message(WARNING "Math tests using MPFR will be skipped.")