[channels,serial] add CMake messages

Inform user about platforms that do not support serial redirection
This commit is contained in:
akallabeth 2024-08-26 13:25:41 +02:00
parent 1ec18ce827
commit 387dabc4dd
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -6,16 +6,19 @@ set(OPTION_SERVER_DEFAULT OFF)
if(WIN32)
set(OPTION_CLIENT_DEFAULT OFF)
set(OPTION_SERVER_DEFAULT OFF)
message("Serial redirection not supported on windows")
endif()
if(ANDROID)
set(OPTION_CLIENT_DEFAULT OFF)
set(OPTION_SERVER_DEFAULT OFF)
message("Serial redirection not supported on android")
endif()
if (APPLE)
set(OPTION_CLIENT_DEFAULT OFF)
set(OPTION_SERVER_DEFAULT OFF)
message("Serial redirection not supported on apple")
endif()
define_channel_options(NAME "serial" TYPE "device"