diff options
-rw-r--r-- | modules/FindUDev.cmake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/FindUDev.cmake b/modules/FindUDev.cmake index dd25d63c..4c8390db 100644 --- a/modules/FindUDev.cmake +++ b/modules/FindUDev.cmake @@ -2,18 +2,18 @@ # Once done this will define # # UDEV_FOUND - system has UDev -# UDEV_LIBS - The libraries needed to use UDev +# UDEV_INCLUDE_DIR - the libudev include directory +# UDEV_LIBS - The libudev libraries # Copyright (c) 2010, Rafael Fernández López, <ereslibre@kde.org> # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. +find_path(UDEV_INCLUDE_DIR libudev.h) find_library(UDEV_LIBS udev) -if(UDEV_LIBS) - set(UDEV_FOUND TRUE) -endif(UDEV_LIBS) - include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_LIBRARY UDEV_INCLUDE_DIR) +find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_INCLUDE_DIR UDEV_LIBS) + +mark_as_advanced(UDEV_INCLUDE_DIR UDEV_LIBS) |