Browse Source

Add missing lib (libz) in lib list to link on msys2

7.0
jean-pierre charras 3 years ago
parent
commit
49ff3513e7
  1. 6
      pcbnew/CMakeLists.txt

6
pcbnew/CMakeLists.txt

@ -673,6 +673,11 @@ make_lexer(
# 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
@ -682,6 +687,7 @@ target_link_libraries( pcbnew_kiface_objects
nlohmann_json
rectpack2d
gzip-hpp
${EXTRA_LIB}
${OCC_LIBRARIES}
)

Loading…
Cancel
Save