Commit d7850f2c authored by Ryan Pavlik's avatar Ryan Pavlik

cmake: Fix quoting issue in FindOpenHMD.cmake

parent 87d13d9a
Pipeline #29195 passed with stages
in 37 seconds
......@@ -76,15 +76,15 @@ set(OPENHMD_HIDAPI_TYPE)
if(PC_OPENHMD_FOUND)
# See if we need a particular hidapi.
list(REMOVE_ITEM PC_OPENHMD_LIBRARIES openhmd)
if(${PC_OPENHMD_LIBRARIES} MATCHES hidapi-libusb)
if("${PC_OPENHMD_LIBRARIES}" MATCHES hidapi-libusb)
set(OPENHMD_HIDAPI_TYPE libusb)
find_package(HIDAPI QUIET COMPONENTS libusb)
list(APPEND _ohmd_extra_deps HIDAPI_libusb_FOUND)
elseif(${PC_OPENHMD_LIBRARIES} MATCHES hidapi-hidraw)
elseif("${PC_OPENHMD_LIBRARIES}" MATCHES hidapi-hidraw)
set(OPENHMD_HIDAPI_TYPE hidraw)
find_package(HIDAPI QUIET COMPONENTS hidraw)
list(APPEND _ohmd_extra_deps HIDAPI_hidraw_FOUND)
elseif(${PC_OPENHMD_LIBRARIES} MATCHES hidapi)
elseif("${PC_OPENHMD_LIBRARIES}" MATCHES hidapi)
# Undifferentiated
set(OPENHMD_HIDAPI_TYPE undifferentiated)
find_package(HIDAPI QUIET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment