Use hidapi-src/windows on MINGW as well as MSVC

This commit is contained in:
Craig Carnell 2025-09-26 21:34:43 +01:00
parent 7ab91ff055
commit fc1c060bb4

View File

@ -6,7 +6,7 @@ target_include_directories(hidapi PUBLIC hidapi-src/hidapi)
if(APPLE)
target_sources(hidapi PRIVATE hidapi-src/mac/hid.c)
elseif(MSVC)
elseif(WIN32)
target_sources(hidapi PRIVATE hidapi-src/windows/hid.c)
else()
find_package(LIBUDEV)