[libc-commits] [libc] 1e2772c - [libc] Link mpfr and gmp wrapper to the libcMPFRWrapper.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Thu Apr 23 11:37:28 PDT 2020
Author: Siva Chandra Reddy
Date: 2020-04-23T11:37:13-07:00
New Revision: 1e2772c0a3333f10b3fd0e0220022e80f4b0afd2
URL: https://github.com/llvm/llvm-project/commit/1e2772c0a3333f10b3fd0e0220022e80f4b0afd2
DIFF: https://github.com/llvm/llvm-project/commit/1e2772c0a3333f10b3fd0e0220022e80f4b0afd2.diff
LOG: [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
Added:
Modified:
libc/utils/MPFRWrapper/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index aa03724aee46..8de737485681 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -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()
More information about the libc-commits
mailing list