Kevin Ottens ervin at kde.org
Sun Oct 3 15:10:29 CEST 2010

SVN commit 1182142 by ervin:

Make the module actually works for me. Seems to be the more standard way
to deal with this kind of detection.

CCMAIL: ereslibre at kde.org
CCMAIL: kde-buildsystem at kde.org

 M  +6 -6      FindUDev.cmake  

--- trunk/KDE/kdelibs/cmake/modules/FindUDev.cmake #1182141:1182142
@@ -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 at 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)
+find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_INCLUDE_DIR UDEV_LIBS)
-find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_LIBRARY UDEV_INCLUDE_DIR)
+mark_as_advanced(UDEV_INCLUDE_DIR UDEV_LIBS)

More information about the Kde-buildsystem mailing list