Link to zlib for pcbnew due to step

This commit is contained in:
Marek Roszko
2022-11-13 17:58:41 -05:00
parent 126914859a
commit cedef5912e
+1 -7
View File
@@ -671,13 +671,6 @@ make_lexer(
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
PRIVATE
common
@@ -688,6 +681,7 @@ target_link_libraries( pcbnew_kiface_objects
rectpack2d
gzip-hpp
${EXTRA_LIB}
${ZLIB_LIBRARIES}
${OCC_LIBRARIES}
)