diff options
author | Michael Buch <michaelbuch12@gmail.com> | 2024-05-29 16:11:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 16:11:31 +0100 |
commit | b054716c51465ca82c87934e7f9970128a3f3562 (patch) | |
tree | ee72542c5698af58ac18e8df6f1039edaadc0cfe /llvm/lib/Support/CMakeLists.txt | |
parent | 6127f15e5b4834411e8f2e700e25c40490deec35 (diff) | |
download | llvm-revert-92865-remove-nonhermetic-terminfo.zip llvm-revert-92865-remove-nonhermetic-terminfo.tar.gz llvm-revert-92865-remove-nonhermetic-terminfo.tar.bz2 |
Revert "[Support] Remove terminfo dependency (#92865)"revert-92865-remove-nonhermetic-terminfo
This reverts commit 6bf450c7a60fa62c642e39836566da94bb9bbc91.
Diffstat (limited to 'llvm/lib/Support/CMakeLists.txt')
-rw-r--r-- | llvm/lib/Support/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index be4badc..03e8889 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -56,6 +56,9 @@ elseif( CMAKE_HOST_UNIX ) STRING(REGEX REPLACE "^lib" "" Backtrace_LIBFILE ${Backtrace_LIBFILE}) set(system_libs ${system_libs} ${Backtrace_LIBFILE}) endif() + if( LLVM_ENABLE_TERMINFO ) + set(imported_libs ${imported_libs} Terminfo::terminfo) + endif() set(system_libs ${system_libs} ${LLVM_ATOMIC_LIB}) set(system_libs ${system_libs} ${LLVM_PTHREAD_LIB}) if( UNIX AND NOT (BEOS OR HAIKU) ) @@ -322,6 +325,14 @@ if(LLVM_ENABLE_ZSTD) set(llvm_system_libs ${llvm_system_libs} "${zstd_library}") endif() +if(LLVM_ENABLE_TERMINFO) + if(NOT terminfo_library) + get_property(terminfo_library TARGET Terminfo::terminfo PROPERTY LOCATION) + endif() + get_library_name(${terminfo_library} terminfo_library) + set(llvm_system_libs ${llvm_system_libs} "${terminfo_library}") +endif() + set_property(TARGET LLVMSupport PROPERTY LLVM_SYSTEM_LIBS "${llvm_system_libs}") |