]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CMake - fix check for UDEV 6053/head
authorDaniel Gryniewicz <dang@fprintf.net>
Mon, 21 Sep 2015 16:52:02 +0000 (12:52 -0400)
committerDaniel Gryniewicz <dang@fprintf.net>
Wed, 23 Sep 2015 14:55:55 +0000 (10:55 -0400)
Signed-off-by: Daniel Gryniewicz <dang@fprintf.net>
CMakeLists.txt
cmake/modules/Findudev.cmake

index c73fa4076524caaccca327d4c1431540891eee19..35a5104abac0d9e699b5aab2c3ecd76337770616 100644 (file)
@@ -93,7 +93,6 @@ endif(${ENABLE_SHARED})
 
 find_package(udev REQUIRED)
 set(HAVE_UDEV ${UDEV_FOUND})
-message(STATUS "${UDEV_LIBS}")
 
 option(WITH_AIO "AIO is here ON" ON)
 if(${WITH_AIO})
index 0e95f15804eb9a73b3087a9878bd50aa6842c5b5..7a7bbac2d8ba6cfa0f0d1421f3134107cac68d49 100644 (file)
@@ -46,6 +46,11 @@ else()
   endif()
 endif()
 
+# handle the QUIETLY and REQUIRED arguments and set UUID_FOUND to TRUE if
+# all listed variables are TRUE
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(udev DEFAULT_MSG UDEV_LIBRARIES UDEV_INCLUDE_DIR)
+
 mark_as_advanced(
   UDEV_LIBRARY
   UDEV_I