Skip to content

Commit d0aa9c7

Browse files
committed
cmake: when building, tell people if serial support exists
If we found libserialport (or didn't find it) tell people. Signed-off-by: Robin Getz <[email protected]>
1 parent 77876fc commit d0aa9c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ if (LIBSERIALPORT_LIBRARIES AND LIBSERIALPORT_INCLUDE_DIR)
244244
message(WARNING "The installed version of libserialport is too old. The minimum version supported is 0.1.1. Disabling Serial support.")
245245
SET(WITH_SERIAL_BACKEND OFF)
246246
else()
247+
message(STATUS "Looking for libserialport : Found")
247248
list(APPEND LIBIIO_CFILES serial.c)
248249
list(APPEND LIBS_TO_LINK ${LIBSERIALPORT_LIBRARIES})
249250

@@ -254,6 +255,8 @@ if (LIBSERIALPORT_LIBRARIES AND LIBSERIALPORT_INCLUDE_DIR)
254255
include_directories(${LIBSERIALPORT_INCLUDE_DIR})
255256
endif()
256257
endif()
258+
else()
259+
message(STATUS "Looking for libserialport : Failed; building without serial")
257260
endif()
258261

259262
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)