[libc] Link mpfr and gmp wrapper to the libcMPFRWrapper.

This will fix building the wrapper shared library when
BUILD_SHARED_LIBS is ON.

Reviewers: PaulkaToast

Differential Revision: https://reviews.llvm.org/D78737
This commit is contained in:
Siva Chandra Reddy 2020-04-23 10:57:28 -07:00
parent d6c95ae6ff
commit 1e2772c0a3

View File

@ -12,6 +12,7 @@ if(LIBC_TESTS_CAN_USE_MPFR)
MPFRUtils.cpp
MPFRUtils.h
)
target_link_libraries(libcMPFRWrapper -lmpfr -lgmp)
else()
message(WARNING "Math tests using MPFR will be skipped.")
endif()