diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index a09891cc7..00901f294 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -1174,7 +1174,7 @@ macro(CheckHIDAPI) else() # libusb is loaded dynamically, so don't add it to EXTRA_LIBS FindLibraryAndSONAME("usb-1.0") - set(SDL_LIBUSB_DYNAMIC "\"${USB_LIB_SONAME}\"") + set(SDL_LIBUSB_DYNAMIC "\"${USB_1.0_LIB_SONAME}\"") endif() endif() endif()