]> git.proxmox.com Git - ceph.git/blob - ceph/cmake/modules/Finduuid.cmake
import 15.2.9
[ceph.git] / ceph / cmake / modules / Finduuid.cmake
1 # Try to find libuuid
2 # Once done, this will define
3 #
4 # UUID_FOUND - system has Profiler
5 # UUID_INCLUDE_DIR - the Profiler include directories
6 # UUID_LIBRARIES - link these to use Profiler
7
8 if(UUID_INCLUDE_DIR AND UUID_LIBRARIES)
9 set(UUID_FIND_QUIETLY TRUE)
10 endif()
11
12 find_path(UUID_INCLUDE_DIR NAMES uuid/uuid.h)
13 find_library(UUID_LIBRARIES NAMES uuid)
14 set(UUID_LIBRARIES ${LIBUUID})
15
16 include(FindPackageHandleStandardArgs)
17 find_package_handle_standard_args(uuid
18 DEFAULT_MSG UUID_LIBRARIES UUID_INCLUDE_DIR)
19
20 mark_as_advanced(UUID_LIBRARIES UUID_INCLUDE_DIR)