Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sandordargo committed Oct 10, 2024
1 parent db4f16f commit b3824f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if: matrix.os == 'ubuntu-latest'
id: boost
shell: bash
run: |
run: |
DEPS_DIR="${{ github.workspace }}/deps"
BOOST_LIBRARIES="chrono,system,test"
BOOST_VERSION="1.70.0"
Expand All @@ -48,17 +48,11 @@ jobs:
if: matrix.os == 'macos-latest'
id: boost-macos
shell: bash
run: |
run: |
brew install boost
export BOOST_ROOT=$(brew --prefix boost)
echo "boost-root-dir=$BOOST_ROOT" >> "$GITHUB_OUTPUT"
- name: Verify Boost (MacOs)
if: matrix.os == 'macos-latest'
shell: bash
run: |
ls /opt/homebrew/opt/boost/lib
- name: Set build directory
id: strings
shell: bash
Expand All @@ -76,9 +70,9 @@ jobs:
if: matrix.os == 'macos-latest'
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_PREFIX_PATH="/opt/homebrew/opt/boost" -DBoost_ROOT="/opt/homebrew/opt/boost" -DBOOST_LIBRARYDIR="/opt/homebrew/opt/boost/lib"
-DCMAKE_PREFIX_PATH="/opt/homebrew/opt/boost" -DBOOST_ROOT=$(brew --prefix boost)
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

Expand Down
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
cmake_minimum_required(VERSION 3.15.0)
project(spotify-json)

if (POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

Expand Down

0 comments on commit b3824f9

Please sign in to comment.