cmake: Fix message handling
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -32,7 +32,7 @@ set (mraa_LIB_X86_SRCS_NOAUTO
|
||||
${PROJECT_SOURCE_DIR}/src/x86/up.c
|
||||
)
|
||||
|
||||
message (STATUS " - Adding support for platform ${MRAAPLATFORMFORCE}")
|
||||
message (STATUS "INFO - Adding support for platform ${MRAAPLATFORMFORCE}")
|
||||
|
||||
#keywords in if statements are case sensitive
|
||||
if (NOT ${MRAAPLATFORMFORCE} STREQUAL "ALL")
|
||||
@@ -56,10 +56,10 @@ if (NOT ${MRAAPLATFORMFORCE} STREQUAL "ALL")
|
||||
elseif (${MRAAPLATFORMFORCE} STREQUAL "MRAA_UP")
|
||||
set (mraa_LIB_X86_SRCS_NOAUTO ${PROJECT_SOURCE_DIR}/src/x86/x86.c ${PROJECT_SOURCE_DIR}/src/x86/up.c)
|
||||
else ()
|
||||
message (FATAL_ERROR " - Unknown x86 platform enabled!")
|
||||
message (FATAL_ERROR "Unknown x86 platform enabled!")
|
||||
endif ()
|
||||
else ()
|
||||
message (STATUS " - Adding support for all platforms")
|
||||
message (STATUS "INFO - Adding support for all platforms")
|
||||
endif ()
|
||||
|
||||
set (mraa_LIB_ARM_SRCS_NOAUTO
|
||||
@@ -83,7 +83,7 @@ if (ARMPLAT)
|
||||
endif()
|
||||
|
||||
if (USBPLAT)
|
||||
message (STATUS " - Adding USB platforms")
|
||||
message (STATUS "INFO - Adding USB platforms")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSBPLAT=1")
|
||||
if (FTDID2xx)
|
||||
find_package (Ftd2xx)
|
||||
@@ -91,7 +91,7 @@ if (USBPLAT)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFTDID2XX=1")
|
||||
set (mraa_LIBS ${mraa_LIBS} ${LIBFTD2XX_LIBRARIES})
|
||||
else ()
|
||||
message (SEND_ERROR " - Enabled FTDID2xx support but library not found")
|
||||
message (SEND_ERROR "Enabled FTDID2xx support but library not found")
|
||||
endif ()
|
||||
endif ()
|
||||
if (FTDI4222)
|
||||
@@ -100,7 +100,7 @@ if (USBPLAT)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFTDI4222=1")
|
||||
set (mraa_LIBS ${mraa_LIBS} dl)
|
||||
else ()
|
||||
message (SEND_ERROR " - Enabled FTDI4222 support but library not found")
|
||||
message (SEND_ERROR "Enabled FTDI4222 support but library not found")
|
||||
endif ()
|
||||
endif ()
|
||||
add_subdirectory(usb)
|
||||
@@ -181,7 +181,7 @@ if (BUILDSWIG)
|
||||
if (SWIG_VERSION VERSION_GREATER 3.0.4)
|
||||
add_subdirectory (javascript)
|
||||
else ()
|
||||
message (SEND_ERROR " - SWIG is ${SWIG_VERSION}. Please upgrade to 3.0.5+ to build nodejs addon")
|
||||
message (SEND_ERROR "SWIG is ${SWIG_VERSION}. Please upgrade to 3.0.5+ to build nodejs addon")
|
||||
endif ()
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user