]> git.proxmox.com Git - ceph.git/blame - ceph/cmake/modules/Findgenl.cmake
update download target update for octopus release
[ceph.git] / ceph / cmake / modules / Findgenl.cmake
CommitLineData
eafe8130
TL
1# - Find libnl-genl3
2# Find the genl library and includes
3#
4# GENL_INCLUDE_DIR - where to find netlink.h, etc.
5# GENL_LIBRARIES - List of libraries when using genl.
6# GENL_FOUND - True if genl found.
7
8find_path(GENL_INCLUDE_DIR NAMES netlink/netlink.h PATH_SUFFIXES libnl3)
9
10find_library(LIBNL_LIB nl-3)
11find_library(LIBNL_GENL_LIB nl-genl-3)
12set(GENL_LIBRARIES
13 ${LIBNL_LIB}
14 ${LIBNL_GENL_LIB}
15 )
16
17include(FindPackageHandleStandardArgs)
18find_package_handle_standard_args(nl-genl-3
19 DEFAULT_MSG GENL_LIBRARIES GENL_INCLUDE_DIR)
20
21mark_as_advanced(
22 GENL_LIBRARIES
23 GENL_INCLUDE_DIR)