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
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)