diff options
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/input_common/CMakeLists.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cd40e5cfe..eb51d09dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -333,6 +333,7 @@ endif() | |||
| 333 | find_package(LibUSB) | 333 | find_package(LibUSB) |
| 334 | if (NOT LIBUSB_FOUND) | 334 | if (NOT LIBUSB_FOUND) |
| 335 | add_subdirectory(externals/libusb) | 335 | add_subdirectory(externals/libusb) |
| 336 | set(LIBUSB_INCLUDE_DIR "") | ||
| 336 | set(LIBUSB_LIBRARIES usb) | 337 | set(LIBUSB_LIBRARIES usb) |
| 337 | endif() | 338 | endif() |
| 338 | 339 | ||
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 3bd76dd23..1d7e19a66 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -30,6 +30,7 @@ if(SDL2_FOUND) | |||
| 30 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) | 30 | target_compile_definitions(input_common PRIVATE HAVE_SDL2) |
| 31 | endif() | 31 | endif() |
| 32 | 32 | ||
| 33 | target_include_directories(input_common SYSTEM PUBLIC ${LIBUSB_INCLUDE_DIR}) | ||
| 33 | target_link_libraries(input_common PUBLIC ${LIBUSB_LIBRARIES}) | 34 | target_link_libraries(input_common PUBLIC ${LIBUSB_LIBRARIES}) |
| 34 | 35 | ||
| 35 | create_target_directory_groups(input_common) | 36 | create_target_directory_groups(input_common) |