Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / cmake / modules / Findblkid.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 libblkid
20 # Find the blkid library and includes
21 #
22 # BLKID_INCLUDE_DIR - where to find blkid.h, etc.
23 # BLKID_LIBRARIES - List of libraries when using blkid.
24 # BLKID_FOUND - True if blkid found.
25
26 find_path(BLKID_INCLUDE_DIR blkid/blkid.h)
27
28 find_library(BLKID_LIBRARIES blkid)
29
30 include(FindPackageHandleStandardArgs)
31 find_package_handle_standard_args(blkid DEFAULT_MSG BLKID_LIBRARIES BLKID_INCLUDE_DIR)
32
33 mark_as_advanced(BLKID_LIBRARIES BLKID_INCLUDE_DIR)