From d9f1bc58f3bcd0afc62c99f00174462fd138cdd8 Mon Sep 17 00:00:00 2001 From: John Date: Sun, 1 Oct 2023 18:24:12 +0200 Subject: [PATCH] fix building ebusfeed --- src/lib/ebus/CMakeLists.txt | 1 + src/tools/ebusfeed.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/ebus/CMakeLists.txt b/src/lib/ebus/CMakeLists.txt index cf69c5e3..22b89d0c 100644 --- a/src/lib/ebus/CMakeLists.txt +++ b/src/lib/ebus/CMakeLists.txt @@ -16,6 +16,7 @@ if(HAVE_CONTRIB) endif(HAVE_CONTRIB) add_library(ebus ${libebus_a_SOURCES}) +target_link_libraries(ebus utils ${libebus_a_LIBS}) if(BUILD_TESTING) add_subdirectory(test) diff --git a/src/tools/ebusfeed.cpp b/src/tools/ebusfeed.cpp index 03cf903b..f423611f 100755 --- a/src/tools/ebusfeed.cpp +++ b/src/tools/ebusfeed.cpp @@ -108,6 +108,7 @@ int main(int argc, char* argv[]) { ebusd::argParseOpt parseOpt = { argDefs, parse_opt, + af_noVersion, "ebusfeed", "[DUMPFILE]", "Feed data from an " PACKAGE " DUMPFILE to a serial device.", @@ -120,6 +121,7 @@ int main(int argc, char* argv[]) { " 'ln -s /dev/pts/3 /dev/ttyUSB20'\n" " 3. start " PACKAGE ": '" PACKAGE " -f -d /dev/ttyUSB20 --nodevicecheck'\n" " 4. start ebusfeed: 'ebusfeed /path/to/ebus_dump.bin'", + nullptr, &opt }; int arg_index = -1;