forked from OSchip/llvm-project
15 lines
389 B
CMake
15 lines
389 B
CMake
|
set(LLVM_LIBC_MPFR_INSTALL_PATH "" CACHE PATH "Path to where MPFR is installed (e.g. C:/src/install or ~/src/install)")
|
||
|
|
||
|
if(LLVM_LIBC_MPFR_INSTALL_PATH)
|
||
|
set(LIBC_TESTS_CAN_USE_MPFR TRUE)
|
||
|
else()
|
||
|
try_compile(
|
||
|
LIBC_TESTS_CAN_USE_MPFR
|
||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||
|
SOURCES
|
||
|
${LIBC_SOURCE_DIR}/utils/MPFRWrapper/check_mpfr.cpp
|
||
|
LINK_LIBRARIES
|
||
|
-lmpfr -lgmp
|
||
|
)
|
||
|
endif()
|