diff options
| author | 2020-07-09 14:56:56 +0000 | |
|---|---|---|
| committer | 2020-07-09 15:26:54 +0000 | |
| commit | 48ff15602e89ee2b7946310dd343859d56795a67 (patch) | |
| tree | f7a5d0e84ef975ee6cc2b17046b08fdd3f3cbe2b /src/input_common | |
| parent | Merge pull request #4219 from ogniK5377/audio-timing (diff) | |
| download | yuzu-48ff15602e89ee2b7946310dd343859d56795a67.tar.gz yuzu-48ff15602e89ee2b7946310dd343859d56795a67.tar.xz yuzu-48ff15602e89ee2b7946310dd343859d56795a67.zip | |
cmake: pass libusb include directory as well
In file included from src/input_common/gcadapter/gc_adapter.cpp:8:
src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found
#include <libusb.h>
^~~~~~~~~~
Diffstat (limited to 'src/input_common')
| -rw-r--r-- | src/input_common/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |