POSIX: FTDI: Use libusb include directory

This allows for the same include to be used on macOS
pull/32/head
Paul Hollinsky 2020-10-08 21:09:45 -04:00
parent a5b27a15b0
commit e5920417ff
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -1,4 +1,3 @@
#include "libusb-1.0/libusb.h"
#include "icsneo/platform/ftdi.h"
#include <iostream>
#include <stdio.h>
@ -6,6 +5,7 @@
#include <memory>
#include <utility>
#include <algorithm>
#include <libusb.h>
using namespace icsneo;