]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed target not being linked properly to zlib system libraries.
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 27 May 2020 16:21:16 +0000 (09:21 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 30 May 2020 19:22:09 +0000 (21:22 +0200)
CMakeLists.txt

index da8d6eb824d6304941ac118bda4b3f21d9ae8d91..d20d765fb9021fec110085e0b1afe51c3d25805d 100644 (file)
@@ -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()