Skip to content

Commit bfaa679

Browse files
committed
fixes #255
1 parent 0c80bd1 commit bfaa679

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/reusable.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ jobs:
8383
- name: Build
8484
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
8585

86+
- name: Verify Qt6Core5Compat in pkg-config file
87+
if: "startsWith(inputs.qt_version, '6.') && inputs.qtextcodec != 'OFF'"
88+
run: grep -q "Qt6Core5Compat" ${{github.workspace}}/build/quazip/*.pc
89+
8690
- name: Run tests
8791
if: inputs.run_tests && !inputs.cross_extract
8892
working-directory: ${{github.workspace}}/build

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ if(QUAZIP_ENABLE_QTEXTCODEC)
253253
if(Qt6Core5Compat_FOUND)
254254
set(QUAZIP_LIB_LIBRARIES ${QUAZIP_LIB_LIBRARIES} Qt6::Core5Compat)
255255
set(QUAZIP_TEST_QT_LIBRARIES ${QUAZIP_TEST_QT_LIBRARIES} Qt6::Core5Compat)
256+
string(APPEND QUAZIP_PKGCONFIG_REQUIRES ", Qt6Core5Compat")
256257

257258
set(QUAZIP_CAN_USE_QTEXTCODEC TRUE)
258259
message("-- Quazip can use QTextCodec")

0 commit comments

Comments
 (0)