cmake: Fix FindLibUV

This commit is contained in:
patrick96 2021-02-17 20:43:35 +01:00 committed by Patrick Ziegler
parent ba118477e0
commit 74d8cf281c
2 changed files with 11 additions and 11 deletions

View File

@ -48,6 +48,8 @@ endif()
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
find_package(CairoFC REQUIRED) find_package(CairoFC REQUIRED)
find_package(LibUV 1.8.0 REQUIRED)
if (ENABLE_ALSA) if (ENABLE_ALSA)
find_package(ALSA REQUIRED) find_package(ALSA REQUIRED)
endif() endif()
@ -98,8 +100,6 @@ endif()
find_package(Xcb ${XRANDR_VERSION} REQUIRED COMPONENTS RANDR) find_package(Xcb ${XRANDR_VERSION} REQUIRED COMPONENTS RANDR)
find_package(Xcb REQUIRED COMPONENTS ${XORG_EXTENSIONS}) find_package(Xcb REQUIRED COMPONENTS ${XORG_EXTENSIONS})
find_package(LibUV 1.10.0 REQUIRED)
# FreeBSD Support # FreeBSD Support
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
find_package(LibInotify REQUIRED) find_package(LibInotify REQUIRED)

View File

@ -1,13 +1,13 @@
# This module defines # This module defines
# LIBUV_FOUND # LibUV_FOUND
# LIBUV_INCLUDE_DIR # LibUV_INCLUDE_DIR
# LIBUV_INCLUDE_DIRS # LibUV_INCLUDE_DIRS
# LIBUV_LIBRARY # LibUV_LIBRARY
# LIBUV_LIBRARIES # LibUV_LIBRARIES
# LIBUV_VERSION # LibUV_VERSION
find_package_impl("libuv" "LIBUV" "") find_package_impl("libuv" "LibUV" "uv.h")
if(LIBUV_FOUND AND NOT TARGET LibUV::LibUV) if(LibUV_FOUND AND NOT TARGET LibUV::LibUV)
create_imported_target("LibUV::LibUV" "${LIBUV_INCLUDE_DIR}" "${LIBUV_LIBRARY}") create_imported_target("LibUV::LibUV" "${LibUV_INCLUDE_DIR}" "${LibUV_LIBRARY}")
endif() endif()