Private
Public Access
2
0

cmake: Disable USB sub-platform support by default

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Henry Bruce
2015-08-17 15:53:40 -07:00
committed by Brendan Le Foll
parent 570fba9463
commit c84cd4328a
2 changed files with 3 additions and 3 deletions

View File

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