Bump version to 19.1.0 (final)
[llvm-project.git] / libc / cmake / modules / LLVMLibCCheckMPFR.cmake
bloba27c2dc0c030bcb1b0539afcb9baf5cdce742f53
1 set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (e.g. C:/src/install or ~/src/install)")
3 if(LLVM_LIBC_MPFR_INSTALL_PATH)
4   set(LIBC_TESTS_CAN_USE_MPFR TRUE)
5 elseif(LIBC_TARGET_OS_IS_GPU OR LLVM_LIBC_FULL_BUILD)
6   # In full build mode, the MPFR library should be built using our own facilities,
7   # which is currently not possible.
8   set(LIBC_TESTS_CAN_USE_MPFR FALSE)
9 else()
10   try_compile(
11     LIBC_TESTS_CAN_USE_MPFR
12     ${CMAKE_CURRENT_BINARY_DIR}
13     SOURCES
14     ${LIBC_SOURCE_DIR}/utils/MPFRWrapper/check_mpfr.cpp
15     LINK_LIBRARIES
16       -lmpfr -lgmp -latomic
17   )
18 endif()