diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c02a286838..60cbdcf6260 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2607,15 +2607,16 @@ option(HID "USB HID controller support" ON) if(HID) find_package(hidapi) # hidapi_VERSION is only available starting with 0.10.0 - if(NOT hidapi_FOUND OR NOT hidapi_VERSION OR hidapi_VERSION VERSION_LESS 0.10.1) + set(MINIMUM_hidapi_VERSION "0.10.1") + if(NOT hidapi_FOUND OR NOT hidapi_VERSION OR hidapi_VERSION VERSION_LESS MINIMUM_hidapi_VERSION) if(hidapi_FOUND) if(hidapi_VERSION) message(STATUS "Found libhidapi version: ${hidapi_VERSION}") else() - message(STATUS "Found libhidapi version < 0.10.0") + message(STATUS "Found libhidapi version < ${MINIMUM_hidapi_VERSION}") endif() endif() - message(STATUS "Linking internal libhidapi 0.10.1 statically") + message(STATUS "Linking internal libhidapi ${MINIMUM_hidapi_VERSION} statically") add_library(mixxx-hidapi STATIC EXCLUDE_FROM_ALL) target_include_directories(mixxx-hidapi SYSTEM PUBLIC lib/hidapi/hidapi) if(WIN32)