Skip to content

Commit

Permalink
cmake: fix SDL_HIDAPI_LIBUSB
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jul 28, 2023
1 parent 03db7fc commit b64f378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/sdlchecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ macro(CheckHIDAPI)
pkg_check_modules(PC_LIBUSB IMPORTED_TARGET ${LibUSB_PKG_CONFIG_SPEC})
if(PC_LIBUSB_FOUND)
cmake_push_check_state()
list(APPEND CMAKE_REQUIRED_INCLUDES ${LibUSB_INCLUDE_DIRS})
list(APPEND CMAKE_REQUIRED_INCLUDES ${PC_LIBUSB_INCLUDE_DIRS})
check_include_file(libusb.h HAVE_LIBUSB_H)
cmake_pop_check_state()
if(HAVE_LIBUSB_H)
Expand All @@ -1041,7 +1041,7 @@ macro(CheckHIDAPI)
if(USB_1.0_LIB)
set(SDL_LIBUSB_DYNAMIC "\"${USB_1.0_LIB_SONAME}\"")
endif()
sdl_link_dependency(hidapi INCLUDES $<TARGET_PROPERTY:LibUSB::LibUSB,INTERFACE_INCLUDE_DIRECTORIES>)
sdl_link_dependency(hidapi INCLUDES $<TARGET_PROPERTY:PkgConfig::PC_LIBUSB,INTERFACE_INCLUDE_DIRECTORIES>)
endif()
endif()
endif()
Expand Down

0 comments on commit b64f378

Please sign in to comment.