Private
Public Access
2
0

ft4222: move calls to libft4222.so to use dlopen

Makes the lib a runtime only dependency

Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Thomas Ingleby
2016-02-14 17:04:31 +01:00
committed by Brendan Le Foll
parent 441a24aaea
commit 7f78b6760f
4 changed files with 86 additions and 35 deletions

View File

@@ -98,7 +98,7 @@ if (USBPLAT)
find_package (Ftd4222)
if (${LIBFT4222_FOUND})
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFTDI4222=1")
set (mraa_LIBS ${mraa_LIBS} ${LIBFT4222_LIBRARIES})
set (mraa_LIBS ${mraa_LIBS} dl)
else ()
message (WARNING " - Enabled FTDI4222 support but library not found")
endif ()