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:
committed by
Brendan Le Foll
parent
441a24aaea
commit
7f78b6760f
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user