From: Nathan Moinvaziri Date: Wed, 27 May 2020 16:21:16 +0000 (-0700) Subject: Fixed target not being linked properly to zlib system libraries. X-Git-Tag: 1.9.9-b1~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2ab507832ab63ac729fd382ab8146be6c54e228;p=thirdparty%2Fzlib-ng.git Fixed target not being linked properly to zlib system libraries. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index da8d6eb82..d20d765fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -921,7 +921,7 @@ if (ZLIB_ENABLE_TESTS) if(ZLIB_DUAL_LINK) find_package(ZLIB) if(ZLIB_FOUND) - target_link_libraries(minigzip ${ZLIB_LIBRARIES}) + target_link_libraries(${target} ${ZLIB_LIBRARIES}) endif() endif() endmacro()