diff --git a/Externals/hidapi/CMakeLists.txt b/Externals/hidapi/CMakeLists.txt index 210643caf09..df41e10c6d0 100644 --- a/Externals/hidapi/CMakeLists.txt +++ b/Externals/hidapi/CMakeLists.txt @@ -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)