From 35fe0cbd34bf5a24a327102498c1bb7ee44472ce Mon Sep 17 00:00:00 2001 From: Paolo Bosetti Date: Mon, 22 Jul 2024 20:49:55 +0200 Subject: [PATCH] Fix for githib action on Linux --- .github/workflows/cmake-multi-platform.yml | 6 ++++++ src/plugin/CMakeLists.txt | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 55ba371..8135618 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -53,6 +53,12 @@ jobs: shell: bash run: | echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" + + - name: Install deps + if: matrix.os == 'ubuntu-latest' + run: > + sudo apt-get update + sudo apt-get install -y uuid-dev - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. diff --git a/src/plugin/CMakeLists.txt b/src/plugin/CMakeLists.txt index fb45799..35f7c3a 100644 --- a/src/plugin/CMakeLists.txt +++ b/src/plugin/CMakeLists.txt @@ -22,8 +22,11 @@ add_plugin(to_console) add_plugin(random) add_plugin(running_avg) add_plugin(worker) -add_plugin(spawner) - +if(UNIX AND NOT APPLE) + add_plugin(spawner LIBS uuid) +elseif(APPLE) + add_plugin(spawner) +endif() # CONDITIONAL PLUGINS ########################################################## # These plugins are only built if the required dependencies are available.