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

@@ -54,7 +54,7 @@ option (BUILDSWIG "Build swig modules." ON)
option (BUILDSWIGPYTHON "Build swig python modules." ON)
option (BUILDSWIGNODE "Build swig node modules." ON)
option (BUILDSWIGJAVA "Build Java API." OFF)
option (USBPLAT "Detection USB platform." ON)
option (USBPLAT "Detection USB platform." OFF)
option (FTDID2XX "Build with FTDI D2xx subplatform support." OFF)
option (FTDI4222 "Build with FTDI FT4222 subplatform support." OFF)
option (IPK "Generate IPK using CPack" OFF)

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