build/cmake: Fix udev related warning

CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (UDEV) does
  not match the name of the calling package (udev).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Findudev.cmake:64 (find_package_handle_standard_args)
  CMakeLists.txt:71 (find_package)
This commit is contained in:
Christoph Haag 2020-10-21 02:36:06 +02:00
parent 15a89005ca
commit 2855616e32

View file

@ -61,7 +61,7 @@ find_path(UDEV_INCLUDE_DIR
) )
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(UDEV find_package_handle_standard_args(udev
DEFAULT_MSG DEFAULT_MSG
UDEV_LIBRARY UDEV_LIBRARY
UDEV_INCLUDE_DIR UDEV_INCLUDE_DIR