Skip to content

Commit

Permalink
CMakeLists.txt: Disable WITH_SERIAL_BACKEND by default
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Suciu <[email protected]>
  • Loading branch information
adisuciu authored and pcercuei committed May 22, 2021
1 parent de4ba04 commit 6d34cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CI/travis/make_linux
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ handle_default() {
if [ "${OS_VERSION}" = xenial ] ; then
FLAGS="${FLAGS} -DWITH_SERIAL_BACKEND=OFF"
else
FLAGS="${FLAGS} -DWITH_ZSTD=ON"
FLAGS="${FLAGS} -DWITH_SERIAL_BACKEND=ON -DWITH_ZSTD=ON"
fi

echo "### cmake ${FLAGS}"
Expand Down
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,12 @@ if(WITH_LOCAL_BACKEND)
endif()
endif()

option(WITH_SERIAL_BACKEND "Enable the serial backend" ON)
option(WITH_SERIAL_BACKEND "Enable the serial backend" OFF)
if (WITH_SERIAL_BACKEND)
find_library(LIBSERIALPORT_LIBRARIES serialport)
find_path(LIBSERIALPORT_INCLUDE_DIR libserialport.h)
if (NOT LIBSERIALPORT_LIBRARIES OR NOT LIBSERIALPORT_INCLUDE_DIR)
message(SEND_ERROR "Unable to find libserialport dependency.\n"
"If you want to disable the serial backend, set WITH_SERIAL_BACKEND=OFF.")
message(SEND_ERROR "Unable to find libserialport dependency.\n")
else()
message(STATUS "Looking for libserialport : Found")

Expand Down

0 comments on commit 6d34cce

Please sign in to comment.