Link to zlib for pcbnew due to step

This commit is contained in:
Marek Roszko 2022-11-13 17:58:26 -05:00
parent 126914859a
commit cedef5912e

View File

@ -671,13 +671,6 @@ make_lexer(
DSN DSN
) )
# CMake <3.9 can't link anything to object libraries,
# but we only need include directories, as we will link the kiface MODULE
if( MINGW )
# at least on msys2, zlib must be added to gzip-hpp
set( EXTRA_LIB z )
endif()
target_link_libraries( pcbnew_kiface_objects target_link_libraries( pcbnew_kiface_objects
PRIVATE PRIVATE
common common
@ -688,6 +681,7 @@ target_link_libraries( pcbnew_kiface_objects
rectpack2d rectpack2d
gzip-hpp gzip-hpp
${EXTRA_LIB} ${EXTRA_LIB}
${ZLIB_LIBRARIES}
${OCC_LIBRARIES} ${OCC_LIBRARIES}
) )