From 4a74103e7089545200e314a9e82d28f41911975b Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 3 Sep 2024 18:15:51 +1000 Subject: [PATCH] Revert hidraw version check * `packagesExist(hidapi-hidraw>=0.10.1)` is not a valid qmake version test --- OpenRGB.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRGB.pro b/OpenRGB.pro index 2560b09ee..9dc3a744c 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -515,7 +515,8 @@ contains(QMAKE_PLATFORM, linux) { # hidapi-hidraw >= 0.10.1 supports USAGE/USAGE_PAGE # # Define USE_HID_USAGE if hidapi-hidraw supports it # #---------------------------------------------------------------------------------------# - packagesExist(hidapi-hidraw>=0.10.1) { + HIDAPI_HIDRAW_VERSION = $$system($$PKG_CONFIG --modversion hidapi-hidraw) + if(versionAtLeast(HIDAPI_HIDRAW_VERSION, "0.10.1")) { DEFINES += USE_HID_USAGE } } else {