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