[libc-commits] [libc] [libc] Update include directory for libcMPCWrapper target when LIBC_MPC_INSTALL_PATH is set. (PR #124810)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 16:09:10 PST 2025
================
@@ -17,6 +17,14 @@ if(LIBC_TESTS_CAN_USE_MPC)
libc.src.__support.complex_type
LibcTest.unit
)
+ if(EXISTS ${LLVM_LIBC_MPFR_INSTALL_PATH})
+ target_include_directories(libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/include)
+ target_link_directories(libcMPCWrapper PUBLIC ${LLVM_LIBC_MPFR_INSTALL_PATH}/lib)
+ endif()
+ if(EXISTS ${LIBC_MPC_INSTALL_PATH})
+ target_include_directories(libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH}/include)
+ target_link_directories(libcMPCWrapper PUBLIC ${LIBC_MPC_INSTALL_PATH}/lib)
+ endif()
----------------
lntue wrote:
I've created https://github.com/llvm/llvm-project/issues/124860 to track that plan.
https://github.com/llvm/llvm-project/pull/124810
More information about the libc-commits
mailing list