diff options
| author | 2021-06-03 03:49:35 -0400 | |
|---|---|---|
| committer | 2021-06-03 03:49:35 -0400 | |
| commit | ddc47e6df8cd9e06d799933f67e75ba6f8952acd (patch) | |
| tree | f1fd486d62f031cc4606c42dab2fea60d3af5fd2 /src | |
| parent | cmake: Use autotools to build libusb generally for GNU (diff) | |
| download | yuzu-ddc47e6df8cd9e06d799933f67e75ba6f8952acd.tar.gz yuzu-ddc47e6df8cd9e06d799933f67e75ba6f8952acd.tar.xz yuzu-ddc47e6df8cd9e06d799933f67e75ba6f8952acd.zip | |
cmake: General improvements to libusb linking
Delegates libusb external communication to externals/CMakeLists.txt
Ensures an interface library `usb` for every pathway
input_common just links to the `usb` library now
externals/libusb/CMakeLists.txt sets variables to override SDL2's libusb
finding
Other minor cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index de53e1fda..7c5763f9c 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -71,8 +71,7 @@ if (ENABLE_SDL2) | |||
| 71 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) | 71 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) |
| 72 | endif() | 72 | endif() |
| 73 | 73 | ||
| 74 | target_include_directories(input_common SYSTEM PRIVATE ${LIBUSB_INCLUDE_DIR}) | 74 | target_link_libraries(input_common PRIVATE usb) |
| 75 | target_link_libraries(input_common PRIVATE ${LIBUSB_LIBRARIES}) | ||
| 76 | 75 | ||
| 77 | create_target_directory_groups(input_common) | 76 | create_target_directory_groups(input_common) |
| 78 | target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost) | 77 | target_link_libraries(input_common PUBLIC core PRIVATE common Boost::boost) |