From cedef5912ee621c3ad680b5ad6830e01064bcac6 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 13 Nov 2022 17:58:26 -0500 Subject: [PATCH] Link to zlib for pcbnew due to step --- pcbnew/CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pcbnew/CMakeLists.txt b/pcbnew/CMakeLists.txt index 8f4866d3ae..482948e2e9 100644 --- a/pcbnew/CMakeLists.txt +++ b/pcbnew/CMakeLists.txt @@ -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} )