Merge pull request #6407 from lat9nq/fix-libusb-2

cmake: Use autotools for libusb linking generally on GNU, and cleanup
This commit is contained in:
bunnei 2021-06-10 23:35:30 -07:00 committed by GitHub
commit c1b8e59ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 36 deletions

View file

@ -71,8 +71,7 @@ if (ENABLE_SDL2)
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
endif()
target_include_directories(input_common SYSTEM PRIVATE ${LIBUSB_INCLUDE_DIR})
target_link_libraries(input_common PRIVATE ${LIBUSB_LIBRARIES})
target_link_libraries(input_common PRIVATE usb)
create_target_directory_groups(input_common)
target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost)