fix for ci and fetchcontent build

replace cmake --build with actual command in github format workflow for faster checking
This commit is contained in:
Bechir Braham 2024-04-09 17:38:34 +02:00
parent 0755de309e
commit ea17a640cf
No known key found for this signature in database
GPG Key ID: 7F511B55FD8E9671
4 changed files with 4 additions and 6 deletions

View File

@ -13,9 +13,7 @@ jobs:
pwd
mkdir build
cd build
cmake ..
cmake --build . --target=check-format
find \( -name "*.cpp" -o -name "*.hpp" \) -not -path "./build/*" | xargs -I {} -n 1 -P 10 bash -c "clang-format -i -style=\"file:.clang-format\" {}"

View File

@ -89,6 +89,7 @@ if (AARE_FETCH_BOOST)
GIT_TAG boost-1.80.0
)
FetchContent_MakeAvailable(Boost)
set(Boost_LIBRARIES Boost::program_options)
else()
find_package(Boost 1.80 REQUIRED COMPONENTS program_options)

View File

@ -1,5 +1,5 @@
set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;restream_example")
set(EXAMPLE_LIST "json_example;logger_example;numpy_read_example;multiport_example;raw_example;zmq_restream_example")
set(EXAMPLE_LIST "${EXAMPLE_LIST};mythen_example;numpy_write_example;zmq_receiver_example;zmq_sender_example;")
foreach(example ${EXAMPLE_LIST})
add_executable(${example} ${example}.cpp)

View File

@ -1,11 +1,10 @@
#include <boost/program_options.hpp>
#include <chrono>
#include <thread>
#include "aare/file_io/File.hpp"
#include "aare/network_io/ZmqSocketSender.hpp"
#include <boost/program_options/options_description.hpp>
#include <boost/program_options.hpp>
using namespace aare;
using namespace std;