mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
build: remove config-specific find_package search for libuv
Having two separate find_package calls makes it harder to maintain.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
find_path2(LIBUV_INCLUDE_DIR uv.h)
|
||||
find_library2(LIBUV_LIBRARY NAMES uv_a uv)
|
||||
find_library2(LIBUV_LIBRARY NAMES uv_a uv libuv)
|
||||
|
||||
set(LIBUV_LIBRARIES ${LIBUV_LIBRARY})
|
||||
|
||||
@ -41,10 +41,12 @@ endif()
|
||||
if(WIN32)
|
||||
# check_library_exists() does not work for Win32 API calls in X86 due to name
|
||||
# mangling calling conventions
|
||||
list(APPEND LIBUV_LIBRARIES iphlpapi)
|
||||
list(APPEND LIBUV_LIBRARIES psapi)
|
||||
list(APPEND LIBUV_LIBRARIES userenv)
|
||||
list(APPEND LIBUV_LIBRARIES ws2_32)
|
||||
list(APPEND LIBUV_LIBRARIES
|
||||
iphlpapi
|
||||
psapi
|
||||
userenv
|
||||
ws2_32
|
||||
dbghelp)
|
||||
endif()
|
||||
|
||||
find_package(Threads)
|
||||
|
Reference in New Issue
Block a user