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: [email protected] CCMAIL: [email protected] 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, <[email protected]> # # 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_INCLUDE_DIR UDEV_LIBS) -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_LIBRARY UDEV_INCLUDE_DIR) +mark_as_advanced(UDEV_INCLUDE_DIR UDEV_LIBS) _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
