~ubuntu-branches/ubuntu/maverick/knemo/maverick

« back to all changes in this revision

Viewing changes to cmake/modules/FindLibnl.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2010-01-06 17:16:51 UTC
  • mfrom: (1.1.9 upstream) (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100106171651-ff58ryfnav4l1zbm
Tags: 0.6.0-1
* New upstream release 
  - Fixes "FTBFS: sysbackend.cpp:362: error: 'KILO' was not declared in
  this scope" (Closes: #560496)
  - Fixes "context menu does not appear" (Closes: #504791)
* Add Build-Depends: libnl-dev - Linux netlink sockets library

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Find libnl
 
2
#
 
3
# This module defines
 
4
#  LIBNL_FOUND - whether the libnl library was found
 
5
#  LIBNL_LIBRARIES - the libnl library
 
6
#  LIBNL_INCLUDE_DIR - the include path of the libnl library
 
7
 
 
8
find_library (LIBNL_LIBRARY nl)
 
9
 
 
10
set(LIBNL_LIBRARIES ${LIBNL_LIBRARY})
 
11
 
 
12
find_path (LIBNL_INCLUDE_DIR
 
13
  NAMES
 
14
  netlink.h
 
15
  PATH_SUFFIXES
 
16
  netlink
 
17
)
 
18
 
 
19
include(FindPackageHandleStandardArgs)
 
20
find_package_handle_standard_args(Libnl  DEFAULT_MSG  LIBNL_LIBRARY LIBNL_INCLUDE_DIR)
 
21
 
 
22
mark_as_advanced(LIBNL_INCLUDE_DIR LIBNL_LIBRARY)