mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
c3ff8cbb7c
Explicitly try to find the static libuv library first. This might be considered a hack and if it weren't a single-use module it might be preferable to control static versus shared preferences with a configuration variable.
25 lines
671 B
CMake
25 lines
671 B
CMake
# - Try to find libuv
|
|
# Once done, this will define
|
|
#
|
|
# LibUV_FOUND - system has libuv
|
|
# LibUV_INCLUDE_DIRS - the libuv include directories
|
|
# LibUV_LIBRARIES - link these to use libuv
|
|
|
|
include(LibFindMacros)
|
|
|
|
# Include dir
|
|
find_path(LibUV_INCLUDE_DIR
|
|
NAMES uv.h
|
|
)
|
|
|
|
# The library itself. Note that we prefer the static version.
|
|
find_library(LibUV_LIBRARY
|
|
NAMES libuv.a uv
|
|
)
|
|
|
|
# Set the include dir variables and the libraries and let libfind_process do the rest.
|
|
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
|
|
set(LibUV_PROCESS_INCLUDES LibUV_INCLUDE_DIR)
|
|
set(LibUV_PROCESS_LIBS LibUV_LIBRARY)
|
|
libfind_process(LibUV)
|