mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
4cf4ae93df
- Remove unused code - Use consistent casing. Variable names such as LibLuV_LIBRARIES is needlessly jarring, even if the name might be technically correct. - Use title casing for packages. find_package(unibilium) requires the find_module to be named "Findunibilium.cmake", which makes it harder to spot when scanning the files. Instead, use "Unibilium".
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)
|