From 3c082ee1d721aacc70c22bedf1649cf055e56979 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index b67d771..60c33c1 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -1 +1,2 @@ -add_library(hidapi-hidraw hid.c) \ No newline at end of file +add_library(hidapi-hidraw hid.c) +target_link_libraries(hidapi-hidraw udev)