File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1- [submodule "libs/cxxopts "]
2- path = libs/cxxopts
3- url = https://github.com/NikolasK-source/cxxopts.git
Original file line number Diff line number Diff line change 22# ======================================================================================================================
33find_package (cxxshm REQUIRED)
44find_package (cxxsemaphore REQUIRED)
5+ find_package (cxxopts REQUIRED)
56
67# ---------------------------------------- external libs ---------------------------------------------------------------
78# ======================================================================================================================
89find_library (modbus_library modbus)
910
1011# ---------------------------------------- subdirectories --------------------------------------------------------------
1112# ======================================================================================================================
12- add_subdirectory (cxxopts EXCLUDE_FROM_ALL )
1313
1414# ---------------------------------------- link libraries --------------------------------------------------------------
1515# ======================================================================================================================
1616target_link_libraries (${Target} PRIVATE ${modbus_library} )
1717target_link_libraries (${Target} PRIVATE rt)
18- target_link_libraries (${Target} PRIVATE cxxopts)
18+ target_link_libraries (${Target} PRIVATE INTERFACE cxxopts)
1919target_link_libraries (${Target} PRIVATE cxxshm)
2020target_link_libraries (${Target} PRIVATE cxxsemaphore)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ int main(int argc, char **argv) {
193193 cxxopts::ParseResult args;
194194 try {
195195 args = options.parse (argc, argv);
196- } catch (cxxopts::OptionParseException &e) {
196+ } catch (cxxopts::exceptions::parsing::exception &e) {
197197 std::cerr << Print_Time::iso << " ERROR: Failed to parse arguments: " << e.what () << " .'\n " ;
198198 return exit_usage ();
199199 }
You can’t perform that action at this time.
0 commit comments