Skip to content

Commit

Permalink
macos: fix pkgconfig environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
quesnel committed Jul 2, 2024
1 parent b78bcf2 commit 5478d06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ jobs:

steps:
- name: Checkout repository and submodule
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: brew install expat fmt

- name: Configure CMake
env:
PKG_CONFIG_PATH: /usr/local/opt/expat/lib/pkgconfig
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (UNIX)
set(BUILD_SHARED_LIBS ON)
endif()

find_package(expat CONFIG REQUIRED)
find_package(EXPAT CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
find_package(Threads REQUIRED)

Expand Down

0 comments on commit 5478d06

Please sign in to comment.