Skip to content

Commit db2bae2

Browse files
committed
GitHub-CI (macos): Use pkg-config files for Qt6 at default location.
* .github/workflows/stable/make-macos.yaml: Homebrew updated Qt6 to version 6.9.0 or newer which installs the pkg-config files at the default location. Simplify build rules accordingly.
1 parent e26f65a commit db2bae2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/make-macos.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,13 @@ jobs:
3333
- compiler: clang
3434
cc: "clang"
3535
cxx: "clang++"
36-
# Qt6 doesn't install pkg-config files on macOS by default. See: https://bugreports.qt.io/browse/QTBUG-86080
37-
# Homebrew installs "unofficial" .pc files for it in a non-default location.
38-
qt-pkg-config-path: opt/qt@6/libexec/lib/pkgconfig
3936
- os: macos-13
4037
qt: "5"
4138
cc: "clang"
4239
cxx: "clang++"
4340
# SUNDIALS >= 6.5.0 doesn't compile with the default flags determined
4441
# by the configure script. Set CXX manually to enable building with it.
4542
cxx-compiler-flags: "-std=gnu++14"
46-
qt-pkg-config-path: opt/qt@5/lib/pkgconfig
4743

4844
env:
4945
CC: ${{ matrix.cc }}
@@ -157,7 +153,7 @@ jobs:
157153
CPPFLAGS="-I${HOMEBREW_PREFIX}/opt/gettext/include -I${HOMEBREW_PREFIX}/opt/icu4c/include -I${HOMEBREW_PREFIX}/opt/libiconv/include -I${HOMEBREW_PREFIX}/opt/qt@${{ matrix.qt }}/include -I${HOMEBREW_PREFIX}/opt/readline/include -I${HOMEBREW_PREFIX}/opt/sqlite/include $MY_CPPFLAGS -I${HOMEBREW_PREFIX}/include" \
158154
CXXFLAGS="-O2 -g" \
159155
LDFLAGS="-L${HOMEBREW_PREFIX}/opt/bison/lib -L${HOMEBREW_PREFIX}/opt/gettext/lib -L${HOMEBREW_PREFIX}/opt/icu4c/lib -L${HOMEBREW_PREFIX}/opt/libiconv/lib -L${HOMEBREW_PREFIX}/opt/readline/lib -L${HOMEBREW_PREFIX}/opt/sqlite/lib $MY_LDFLAGS -L${HOMEBREW_PREFIX}/lib" \
160-
PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/opt/openblas/lib/pkgconfig:${HOMEBREW_PREFIX}/opt/icu4c/lib/pkgconfig:${HOMEBREW_PREFIX}/${{ matrix.qt-pkg-config-path }}" \
156+
PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/opt/openblas/lib/pkgconfig:${HOMEBREW_PREFIX}/opt/icu4c/lib/pkgconfig:${HOMEBREW_PREFIX}/opt/qt@${{ matrix.qt }}/lib/pkgconfig" \
161157
--with-qt=${{ matrix.qt }} \
162158
QCOLLECTIONGENERATOR="qhelpgenerator" \
163159
--with-x=no \

0 commit comments

Comments
 (0)