[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
GitOrigin-RevId: 1e2772c0a3333f10b3fd0e0220022e80f4b0afd2
diff --git a/utils/MPFRWrapper/CMakeLists.txt b/utils/MPFRWrapper/CMakeLists.txt
index aa03724..8de7374 100644
--- a/utils/MPFRWrapper/CMakeLists.txt
+++ b/utils/MPFRWrapper/CMakeLists.txt
@@ -12,6 +12,7 @@
MPFRUtils.cpp
MPFRUtils.h
)
+ target_link_libraries(libcMPFRWrapper -lmpfr -lgmp)
else()
message(WARNING "Math tests using MPFR will be skipped.")
endif()