Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / cmake / modules / Findudev.cmake
1 # Copyright (C) 2007-2012 Hypertable, Inc.
2 #
3 # This file is part of Hypertable.
4 #
5 # Hypertable is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 3
8 # of the License, or any later version.
9 #
10 # Hypertable is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Hypertable. If not, see <http://www.gnu.org/licenses/>
17 #
18
19 # - Find libudev
20 # Find the udev library and includes
21 #
22 # UDEV_INCLUDE_DIR - where to find libudev.h, etc.
23 # UDEV_LIBRARIES - List of libraries when using udev.
24 # UDEV_FOUND - True if udev found.
25
26 find_path(UDEV_INCLUDE_DIR libudev.h)
27 find_library(UDEV_LIBRARIES udev)
28
29 include(FindPackageHandleStandardArgs)
30 find_package_handle_standard_args(udev DEFAULT_MSG UDEV_LIBRARIES UDEV_INCLUDE_DIR)
31
32 mark_as_advanced(
33   UDEV_LIBRARIES
34   UDEV_INCLUDE_DIR)