diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt index 8830fdd..65e4480 100644 --- a/benchmark/CMakeLists.txt +++ b/benchmark/CMakeLists.txt @@ -9,7 +9,7 @@ add_executable(bench_crypto bench_crypto.cpp) target_link_libraries(bench_crypto PRIVATE tdcore tdutils ${OPENSSL_CRYPTO_LIBRARY}) target_include_directories(bench_crypto SYSTEM PRIVATE ${OPENSSL_INCLUDE_DIR}) if (NOT WIN32) - target_link_libraries(bench_crypto PRIVATE dl z) # for OpenSSL + target_link_libraries(bench_crypto PRIVATE dl ${ZLIB_LIBRARIES}) # for OpenSSL endif() add_executable(bench_actor bench_actor.cpp) diff --git a/sqlite/CMakeLists.txt b/sqlite/CMakeLists.txt index c1d74d5..de2a40c 100644 --- a/sqlite/CMakeLists.txt +++ b/sqlite/CMakeLists.txt @@ -27,7 +27,7 @@ target_compile_definitions(tdsqlite PRIVATE target_compile_definitions(tdsqlite PRIVATE -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_FTS5 -DSQLITE_DISABLE_LFS) if (NOT WIN32) - target_link_libraries(tdsqlite PRIVATE z) + target_link_libraries(tdsqlite PRIVATE ${ZLIB_LIBRARIES}) target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1) endif() diff --git a/tdnet/CMakeLists.txt b/tdnet/CMakeLists.txt index f069e61..da0b402 100644 --- a/tdnet/CMakeLists.txt +++ b/tdnet/CMakeLists.txt @@ -45,7 +45,7 @@ target_include_directories(tdnet PUBLIC $) target_link_libraries(tdnet PUBLIC tdutils tdactor ${OPENSSL_LIBRARIES}) if (UNIX) - target_link_libraries(tdnet PRIVATE dl z) # for OpenSSL + target_link_libraries(tdnet PRIVATE dl ${ZLIB_LIBRARIES}) # for OpenSSL endif() install(TARGETS tdnet EXPORT TdTargets diff --git a/tdutils/CMakeLists.txt b/tdutils/CMakeLists.txt index 3af31b3..2d238cb 100644 --- a/tdutils/CMakeLists.txt +++ b/tdutils/CMakeLists.txt @@ -222,7 +222,7 @@ target_include_directories(tdutils PUBLIC $