From e5920417ff0acb6d5e0d137bc3d2e3651879c403 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Thu, 8 Oct 2020 21:09:45 -0400 Subject: [PATCH] POSIX: FTDI: Use libusb include directory This allows for the same include to be used on macOS --- CMakeLists.txt | 1 + platform/posix/ftdi.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce9221e..74db8c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -194,6 +194,7 @@ if(NOT WIN32) set(FTDIPP OFF CACHE INTERNAL "") set(FTDI_EEPROM OFF CACHE INTERNAL "") add_subdirectory(third-party/libftdi) + include_directories(${LIBUSB_INCLUDE_DIR}) endif(NOT WIN32) # winpcap diff --git a/platform/posix/ftdi.cpp b/platform/posix/ftdi.cpp index eda7082..3ba7445 100644 --- a/platform/posix/ftdi.cpp +++ b/platform/posix/ftdi.cpp @@ -1,4 +1,3 @@ -#include "libusb-1.0/libusb.h" #include "icsneo/platform/ftdi.h" #include #include @@ -6,6 +5,7 @@ #include #include #include +#include using namespace icsneo;