From 7d52868c6c6fba51e5fca01c92a97ea0f00b3a1c Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Fri, 19 Mar 2021 18:26:00 +0100 Subject: CMake: Fix detection of hidapi_VERSION --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 2dc762d5d0..be67c340d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2536,7 +2536,8 @@ find_package(LibUSB) # USB HID controller support find_package(hidapi) option(HID "USB HID controller support" ON) -default_option(HIDAPI_STATIC "Link HIDAPI library statically" "NOT HIDAPI_FOUND") +# hidapi_VERSION is only available starting with 0.10.0 +default_option(HIDAPI_STATIC "Link HIDAPI library statically" "NOT hidapi_FOUND OR NOT hidapi_VERSION OR hidapi_VERSION VERSION_LESS 0.10.0") if(HID) target_sources(mixxx-lib PRIVATE src/controllers/hid/hidcontroller.cpp -- cgit v1.2.3