From 30642d2bc912b03d92861d5514ecf11660bf1ead Mon Sep 17 00:00:00 2001 From: Nikola Ducak Date: Fri, 7 Jun 2024 15:22:03 +0200 Subject: [PATCH] fix: dont use boost static libs --- .github/workflows/release.yml | 7 ++----- CMakeLists.txt | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0d8f8a..638f9e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,6 @@ name: Release on: workflow_dispatch -env: - BUILD_TYPE: Release - jobs: get-version: runs-on: ubuntu-latest @@ -51,7 +48,7 @@ jobs: - name: Build run: | mkdir build && cd build - cmake -DCAPS_LOG_VERSION="${{ needs.create-release.outputs.version }}" .. && make + cmake -DBOOST_USE_STATIC_LIBS=On -DCAPS_LOG_VERSION="${{ needs.create-release.outputs.version }}" -DCMAKE_BUILD_TYPE=Release .. && make - name: Archive and Upload binaries to release run: | @@ -71,7 +68,7 @@ jobs: - name: Build for MacOS run: | mkdir build-macos && cd build-macos - cmake -DCAPS_LOG_VERSION="${{ needs.create-release.outputs.version }}" .. && make + cmake -DBOOST_USE_STATIC_LIBS=On -DCAPS_LOG_VERSION="${{ needs.create-release.outputs.version }}" -DCMAKE_BUILD_TYPE=Release .. && make - name: Archive and Upload MacOS binaries to release run: | diff --git a/CMakeLists.txt b/CMakeLists.txt index b8019ce..ddd7d71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,6 @@ if(NOT ftxui_FOUND) endif() # --------------------------------- boost -------------------------------- # -set(Boost_USE_STATIC_LIBS ON) find_package( Boost COMPONENTS program_options