Private
Public Access
2
0

cmake: Use correct message modes

INFO is not a valid cmake message mode, this commit cleans up a few messages to
use the correct cmake modes

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2016-02-12 11:38:50 +00:00
parent 3397c95c0a
commit 168764481a
3 changed files with 32 additions and 32 deletions

View File

@@ -32,7 +32,7 @@ set (mraa_LIB_X86_SRCS_NOAUTO
${PROJECT_SOURCE_DIR}/src/x86/up.c
)
message (INFO " - Adding support for platform ${MRAAPLATFORMFORCE}")
message (STATUS " - 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 (ERROR " - Unknown x86 platform enabled!")
message (FATAL_ERROR " - Unknown x86 platform enabled!")
endif ()
else ()
message (INFO " - Adding support for all platforms")
message (STATUS " - Adding support for all platforms")
endif ()
set (mraa_LIB_ARM_SRCS_NOAUTO
@@ -83,7 +83,7 @@ if (ARMPLAT)
endif()
if (USBPLAT)
message (INFO " - Adding USB platforms")
message (STATUS " - 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 (WARNING " - 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 (WARNING " - 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 ("WARN - 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 ()