Skip to content

Commit 9f6b5bf

Browse files
mstorsjotkrasnukha
authored andcommitted
Don't use TERMINFO_LIB if the library wasn't found
This actually fixes the previous commit.
1 parent dd8898d commit 9f6b5bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ if (NOT lib_llvm)
9898
endforeach()
9999
if (LLVM_ENABLE_TERMINFO AND NOT WIN32)
100100
find_library(TERMINFO_LIB NAMES terminfo tinfo curses ncurses ncursesw)
101-
list(APPEND llvm_deps "${TERMINFO_LIB}")
101+
if (TERMINFO_LIB)
102+
list(APPEND llvm_deps "${TERMINFO_LIB}")
103+
endif()
102104
endif()
103105
endif()
104106

0 commit comments

Comments
 (0)