From 2855616e32c060b1abb2c897df47e08bb26f8637 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Wed, 21 Oct 2020 02:36:06 +0200 Subject: [PATCH] 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) --- cmake/Findudev.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/Findudev.cmake b/cmake/Findudev.cmake index 235d7f141..ef8cea39c 100644 --- a/cmake/Findudev.cmake +++ b/cmake/Findudev.cmake @@ -61,7 +61,7 @@ find_path(UDEV_INCLUDE_DIR ) include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(UDEV +find_package_handle_standard_args(udev DEFAULT_MSG UDEV_LIBRARY UDEV_INCLUDE_DIR