Skip to content

Commit

Permalink
Prefer zlib static
Browse files Browse the repository at this point in the history
  • Loading branch information
asl committed Dec 25, 2023
1 parent 4ae2164 commit 3832aeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ jobs:
version: ${{env.QT_VERSION}}

- name: '⚙️ Install Zlib'
run: C:\msys64\usr\bin\pacman -S zlib-devel --noconfirm
run: |
C:\msys64\usr\bin\pacman -S zlib-devel --noconfirm
del C:\msys64\usr\lib\libz.dll.a
- name: '⚙️ Configure CMake'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_LIBRARY_PATH=C:\msys64\usr\lib
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(Qt6 REQUIRED COMPONENTS Widgets Svg Test Concurrent)
find_package(ZLIB REQUIRED)
set(ZLIB_USE_STATIC_LIBS On)
message(STATUS "Found ZLIB ${ZLIB_LIBRARIES}")

set(LIB_SOURCES
Expand Down

0 comments on commit 3832aeb

Please sign in to comment.