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()