From: Daniel Gryniewicz Date: Mon, 21 Sep 2015 16:52:02 +0000 (-0400) Subject: CMake - fix check for UDEV X-Git-Tag: v9.1.0~84^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6053%2Fhead;p=ceph.git CMake - fix check for UDEV Signed-off-by: Daniel Gryniewicz --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c73fa4076524..35a5104abac0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/cmake/modules/Findudev.cmake b/cmake/modules/Findudev.cmake index 0e95f15804eb..7a7bbac2d8ba 100644 --- a/cmake/modules/Findudev.cmake +++ b/cmake/modules/Findudev.cmake @@ -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