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 3325d4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

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

Expand Down
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ if (UNIX)
set(BUILD_SHARED_LIBS ON)
endif()

find_package(expat CONFIG REQUIRED)
if (WIN32)
find_package(expat CONFIG REQUIRED)
else ()
find_package(EXPAT REQUIRED)
add_library(expat::expat INTERFACE IMPORTED)
target_link_libraries(expat::expat INTERFACE EXPAT::EXPAT)
endif ()

find_package(fmt CONFIG REQUIRED)
find_package(Threads REQUIRED)

Expand Down

0 comments on commit 3325d4a

Please sign in to comment.