]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed duplicate symbol zng_inflate_table and zng_inflate_copyright when BUILD_SHARED_...
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 25 Dec 2021 04:19:03 +0000 (20:19 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 7 Jan 2022 13:56:18 +0000 (14:56 +0100)
CMakeLists.txt

index b3befedb713a643c5a39746b04224c41e870c64e..9acf18df69bd51490c34ba8a3af55db8abbfcfe5 100644 (file)
@@ -1158,7 +1158,9 @@ if(ZLIB_ENABLE_TESTS)
     target_link_libraries(switchlevels zlib)
 
     add_simple_test_executable(infcover)
-    target_sources(infcover PRIVATE inftrees.c)
+    if(NOT BUILD_SHARED_LIBS)
+        target_sources(infcover PRIVATE inftrees.c)
+    endif()
 
     add_executable(makefixed tools/makefixed.c inftrees.c)
     target_include_directories(makefixed PUBLIC