Skip to content

Commit eafe114

Browse files
mstorsjotkrasnukha
authored andcommitted
Only look for a terminfo library if LLVM_ENABLE_TERMINFO is set
Don't look for only curses, but look for the same list of libraries that LLVM itself considers.
1 parent a662be4 commit eafe114

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ if (NOT lib_llvm)
9696
find_library(lib ${dependency} HINTS ${LLVM_LIBRARY_DIRS})
9797
list(APPEND llvm_deps "${lib}")
9898
endforeach()
99-
if(NOT MSVC)
100-
find_package(Curses REQUIRED)
101-
list(APPEND llvm_deps "${CURSES_LIBRARIES}")
99+
if (LLVM_ENABLE_TERMINFO AND NOT WIN32)
100+
find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw REQUIRED)
101+
list(APPEND llvm_deps "${TERMINFO_LIB}")
102102
endif()
103103
endif()
104104

0 commit comments

Comments
 (0)