From b1401e5124f983209632e151a89f06501a2b5a72 Mon Sep 17 00:00:00 2001 From: Daniel Gryniewicz Date: Mon, 21 Sep 2015 12:52:02 -0400 Subject: [PATCH] CMake - fix check for UDEV Signed-off-by: Daniel Gryniewicz --- CMakeLists.txt | 1 - cmake/modules/Findudev.cmake | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c73fa4076524c..35a5104abac0d 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 0e95f15804eb9..7a7bbac2d8ba6 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 -- 2.39.5