mirror of
https://github.com/neovim/neovim.git
synced 2025-11-26 12:10:40 +00:00
Large parts the library weren't being used, and the parts that were was overly
abstracted for our use case. Additionally, part of its use case was to abstract
pkgconfig boilerplate, which is no longer needed as pkgconfig has been removed
in favor of relying on cmake alone in 09118052ce.
15 lines
441 B
CMake
15 lines
441 B
CMake
find_path(LIBLUV_INCLUDE_DIR luv/luv.h)
|
|
|
|
# Explicitly look for luv.so. #10407
|
|
list(APPEND LIBLUV_NAMES luv_a luv libluv_a luv${CMAKE_SHARED_LIBRARY_SUFFIX})
|
|
|
|
find_library(LIBLUV_LIBRARY NAMES ${LIBLUV_NAMES})
|
|
|
|
set(LIBLUV_LIBRARIES ${LIBLUV_LIBRARY})
|
|
set(LIBLUV_INCLUDE_DIRS ${LIBLUV_INCLUDE_DIR})
|
|
|
|
find_package_handle_standard_args(LibLUV DEFAULT_MSG
|
|
LIBLUV_LIBRARY LIBLUV_INCLUDE_DIR)
|
|
|
|
mark_as_advanced(LIBLUV_INCLUDE_DIR LIBLUV_LIBRARY)
|