From 93eef448c23473a7f8132514cf2a8ac9585e261f Mon Sep 17 00:00:00 2001 From: Wilbert van Ham Date: Sun, 24 Nov 2013 10:31:48 +0100 Subject: [PATCH] Update CMakeLists.txt added quotation marks to prevent error: Regular expression "(-libusb|/libusb/" cannot compile --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b3cd007..64d5a6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,7 @@ else() ) set(HIDAPI_STATIC_OBJECT ${HIDAPI_OBJECT}) find_package(PkgConfig REQUIRED) - if (HIDAPI_OBJECT MATCHES \(-libusb|/libusb/(.libs/)?hid\)\\.o\$) + if (HIDAPI_OBJECT MATCHES "\(-libusb|/libusb/(.libs/)?hid\)\\.o\$") pkg_check_modules(LIBUSB REQUIRED libusb-1.0) set(HIDAPI_LINK_LIBS ${LIBUSB_LIBRARIES} rt pthread) else()