!5 [build] Don't require curses when LLVM shared lib is unavailable

Merge pull request !5 from Kholiavin Nikolai/llvm-15.0.4-ohos-rename
This commit is contained in:
hhj
2023-03-21 02:19:12 +00:00
committed by Gitee
-4
View File
@@ -88,10 +88,6 @@ if (NOT lib_llvm)
find_library(lib ${dependency} HINTS ${LLVM_LIBRARY_DIRS})
list(APPEND llvm_deps "${lib}")
endforeach()
if(NOT MSVC)
find_package(Curses REQUIRED)
list(APPEND llvm_deps "${CURSES_LIBRARIES}")
endif()
endif()
list(APPEND llvm_deps "${LLVM_PTHREAD_LIB}")