Files
gentoo-overlay/dev-embedded/xc3sprog/files/xc3sprog-9999-libftdi.patch
2021-09-25 00:09:27 +02:00

14 lines
364 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 96e410d..2099f16 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,7 +18,7 @@ endif(${WIN32})
option(USE_FTD2XX "Use FTDI libFTD2XX instead of free libftdi" ON)
-find_package(libftdi)
+find_package(libftdi REQUIRED NAMES LibFTDI LibFTDI1)
include_directories(${LIBFTDI_INCLUDE_DIR})
if(USE_FTD2XX)