From 907965cc13bdf49ba56f4f88cc94d2c7d43cd1ea Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 10 Jul 2017 12:47:37 +0200 Subject: [PATCH] Link with udev While it works fine to link with udev later, the build will break if you use more extreme linker flags with undefined references to libudev. --- linux/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index f7984bd..60c33c1 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -1 +1,2 @@ add_library(hidapi-hidraw hid.c) +target_link_libraries(hidapi-hidraw udev)