mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 15:42:39 +00:00
d989e59699
ld.lld: error: undefined symbol: setupterm referenced by Process.cpp.o:(llvm::sys::Process::FileDescriptorHasColors(int)) in archive /usr/lib/llvm-9/lib/libLLVMSupport.a Squashed: - fixup termcap + external llvm Signed-off-by: Konstantin Podshumok <kpp.live+signed@gmail.com>
18 lines
565 B
CMake
18 lines
565 B
CMake
if (ENABLE_EMBEDDED_COMPILER AND NOT USE_INTERNAL_LLVM_LIBRARY AND USE_STATIC_LIBRARIES)
|
|
find_library (TERMCAP_LIBRARY tinfo)
|
|
if (NOT TERMCAP_LIBRARY)
|
|
find_library (TERMCAP_LIBRARY ncurses)
|
|
endif()
|
|
if (NOT TERMCAP_LIBRARY)
|
|
find_library (TERMCAP_LIBRARY termcap)
|
|
endif()
|
|
|
|
if (NOT TERMCAP_LIBRARY)
|
|
message (FATAL_ERROR "Statically Linking external LLVM requires termcap")
|
|
endif()
|
|
|
|
target_link_libraries(LLVMSupport INTERFACE ${TERMCAP_LIBRARY})
|
|
|
|
message (STATUS "Using termcap: ${TERMCAP_LIBRARY}")
|
|
endif()
|