aboutsummaryrefslogtreecommitdiff
path: root/CMake/FindUdev.cmake
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-07-11 20:15:28 -0400
committerGitHub <noreply@github.com>2017-07-11 20:15:28 -0400
commit85805da021006697c85489c3e30717c2b807441c (patch)
treeae4a0221b8747579314262b59ff01bec2a32d3b8 /CMake/FindUdev.cmake
parent8189c64d7f07a756abf5a6189719f02b2f1af967 (diff)
parente54b1eded4fc44e6f3d22af2f16d5e055dfd0045 (diff)
Merge pull request #27 from ascent12/meson
[Proposal] Use the Meson build system
Diffstat (limited to 'CMake/FindUdev.cmake')
-rw-r--r--CMake/FindUdev.cmake40
1 files changed, 0 insertions, 40 deletions
diff --git a/CMake/FindUdev.cmake b/CMake/FindUdev.cmake
deleted file mode 100644
index dd97d8e0..00000000
--- a/CMake/FindUdev.cmake
+++ /dev/null
@@ -1,40 +0,0 @@
-#.rst:
-# FindUdev
-# -------
-#
-# Find udev library
-#
-# Try to find udev library on UNIX systems. The following values are defined
-#
-# ::
-#
-# UDEV_FOUND - True if udev is available
-# UDEV_INCLUDE_DIRS - Include directories for udev
-# UDEV_LIBRARIES - List of libraries for udev
-# UDEV_DEFINITIONS - List of definitions for udev
-#
-#=============================================================================
-# Copyright (c) 2015 Jari Vetoniemi
-#
-# Distributed under the OSI-approved BSD License (the "License");
-#
-# This software is distributed WITHOUT ANY WARRANTY; without even the
-# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the License for more information.
-#=============================================================================
-
-include(FeatureSummary)
-set_package_properties(Udev PROPERTIES
- URL "https://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html"
- DESCRIPTION "Device manager for the Linux kernel")
-
-find_package(PkgConfig)
-pkg_check_modules(PC_UDEV QUIET libudev)
-find_library(UDEV_LIBRARIES NAMES udev HINTS ${PC_UDEV_LIBRARY_DIRS})
-find_path(UDEV_INCLUDE_DIRS libudev.h HINTS ${PC_UDEV_INCLUDE_DIRS})
-
-set(UDEV_DEFINITIONS ${PC_UDEV_CFLAGS_OTHER})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(UDEV DEFAULT_MSG UDEV_INCLUDE_DIRS UDEV_LIBRARIES)
-mark_as_advanced(UDEV_INCLUDE_DIRS UDEV_LIBRARIES UDEV_DEFINITIONS)