cmake: Fix FindLibUV
This commit is contained in:
parent
ba118477e0
commit
74d8cf281c
@ -48,6 +48,8 @@ endif()
|
||||
find_package(Threads REQUIRED)
|
||||
find_package(CairoFC REQUIRED)
|
||||
|
||||
find_package(LibUV 1.8.0 REQUIRED)
|
||||
|
||||
if (ENABLE_ALSA)
|
||||
find_package(ALSA REQUIRED)
|
||||
endif()
|
||||
@ -98,8 +100,6 @@ endif()
|
||||
find_package(Xcb ${XRANDR_VERSION} REQUIRED COMPONENTS RANDR)
|
||||
find_package(Xcb REQUIRED COMPONENTS ${XORG_EXTENSIONS})
|
||||
|
||||
find_package(LibUV 1.10.0 REQUIRED)
|
||||
|
||||
# FreeBSD Support
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
find_package(LibInotify REQUIRED)
|
||||
|
@ -1,13 +1,13 @@
|
||||
# This module defines
|
||||
# LIBUV_FOUND
|
||||
# LIBUV_INCLUDE_DIR
|
||||
# LIBUV_INCLUDE_DIRS
|
||||
# LIBUV_LIBRARY
|
||||
# LIBUV_LIBRARIES
|
||||
# LIBUV_VERSION
|
||||
# LibUV_FOUND
|
||||
# LibUV_INCLUDE_DIR
|
||||
# LibUV_INCLUDE_DIRS
|
||||
# LibUV_LIBRARY
|
||||
# LibUV_LIBRARIES
|
||||
# LibUV_VERSION
|
||||
|
||||
find_package_impl("libuv" "LIBUV" "")
|
||||
find_package_impl("libuv" "LibUV" "uv.h")
|
||||
|
||||
if(LIBUV_FOUND AND NOT TARGET LibUV::LibUV)
|
||||
create_imported_target("LibUV::LibUV" "${LIBUV_INCLUDE_DIR}" "${LIBUV_LIBRARY}")
|
||||
if(LibUV_FOUND AND NOT TARGET LibUV::LibUV)
|
||||
create_imported_target("LibUV::LibUV" "${LibUV_INCLUDE_DIR}" "${LibUV_LIBRARY}")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user