From 09838fa825444d1877a644f45ed15d921f3363cd Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Fri, 20 Mar 2026 15:14:19 +0100 Subject: [PATCH] CMakeLists.txt, main: removed USE_DEVICE_ARG usage. Now --device/-d is always available --- CMakeLists.txt | 4 ---- src/main.cpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5070e21..dba3c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -675,10 +675,6 @@ if (ENABLE_UDEV) target_link_libraries(openFPGALoader ${LIBUDEV_LIBRARIES}) endif() -if (ENABLE_UDEV OR ENABLE_LIBGPIOD OR ENABLE_JETSONNANOGPIO) - add_definitions(-DUSE_DEVICE_ARG) -endif(ENABLE_UDEV OR ENABLE_LIBGPIOD OR ENABLE_JETSONNANOGPIO) - if (BUILD_STATIC) set_target_properties(openFPGALoader PROPERTIES LINK_SEARCH_END_STATIC 1) endif() diff --git a/src/main.cpp b/src/main.cpp index 2169eea..89c3db8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -931,10 +931,8 @@ int parse_opt(int argc, char **argv, struct arguments *args, ("ftdi-channel", "FTDI chip channel number (channels 0-3 map to A-D)", cxxopts::value(args->ftdi_channel)) -#if defined(USE_DEVICE_ARG) ("d,device", "device to use (/dev/ttyUSBx)", cxxopts::value(args->device)) -#endif ("detect", "detect FPGA, add -f to show connected flash", cxxopts::value(args->detect)) ("dfu", "DFU mode", cxxopts::value(args->dfu))