cmake: Disable USB sub-platform support by default
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
570fba9463
commit
c84cd4328a
@@ -50,8 +50,8 @@ endif()
|
||||
if (USBPLAT)
|
||||
message (INFO " - Adding USB platforms")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSBPLAT=1")
|
||||
find_package (Ftd2xx)
|
||||
if (FTDID2xx)
|
||||
find_package (Ftd2xx)
|
||||
if (${LIBFTD2XX_FOUND})
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFTDID2XX=1")
|
||||
set (mraa_LIBS ${mraa_LIBS} ${LIBFTD2XX_LIBRARIES})
|
||||
@@ -59,8 +59,8 @@ if (USBPLAT)
|
||||
message (WARNING " - Enabled FTDID2xx support but library not found")
|
||||
endif ()
|
||||
endif ()
|
||||
find_package (Ftd4222)
|
||||
if (FTDI4222)
|
||||
find_package (Ftd4222)
|
||||
if (${LIBFT4222_FOUND})
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFTDI4222=1")
|
||||
set (mraa_LIBS ${mraa_LIBS} ${LIBFT4222_LIBRARIES})
|
||||
|
||||
Reference in New Issue
Block a user