Skip to content
/ krita Public

Commit d53330b

Browse files
dimula73amyspark
authored andcommitted
Add a workaround for zlib library naming on Windows
See upstream bug: madler/zlib#652 Without this workaround packagies using zlib via pkg-config won't link (that is, raqm and harfbuzz)
1 parent 4aa5a67 commit d53330b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

3rdparty/ext_zlib/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ ExternalProject_Add(
1010

1111
UPDATE_COMMAND ""
1212
)
13+
14+
if(WIN32 AND MINGW)
15+
# Workaround for zlib's library naming bug:
16+
# https://github.com/madler/zlib/issues/652
17+
18+
ExternalProject_Add_Step(
19+
ext_zlib
20+
post_install
21+
COMMAND ${CMAKE_COMMAND} -E copy ${PREFIX_ext_zlib}/lib/libzlib.dll.a ${PREFIX_ext_zlib}/lib/libz.dll.a
22+
DEPENDEES install
23+
)
24+
endif()
25+
1326
else()
1427
ExternalProject_Add(
1528
ext_zlib

0 commit comments

Comments
 (0)