From: Nathan Moinvaziri Date: Wed, 9 Mar 2022 22:50:41 +0000 (-0800) Subject: Fixed inftrees.c should be compiled with infcover when zlib is a shared library. X-Git-Tag: 2.1.0-beta1~360 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10a49e391e48475279e15073ad770df55ef0beb3;p=thirdparty%2Fzlib-ng.git Fixed inftrees.c should be compiled with infcover when zlib is a shared library. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d453a9b..9b68cc60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1236,7 +1236,7 @@ if(ZLIB_ENABLE_TESTS) target_link_libraries(switchlevels zlib) add_simple_test_executable(infcover) - if(NOT BUILD_SHARED_LIBS) + if(NOT DEFINED BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS) target_sources(infcover PRIVATE inftrees.c) endif()