diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2023-03-21 09:40:55 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2023-03-21 14:36:48 +0000 |
commit | 724441a782acf683fbfc07589f61ad11de7bf347 (patch) | |
tree | 314420a72ec299a8a75af09967a37c5d6c3e5c82 | |
parent | Merge pull request #8775 (diff) | |
download | monero-724441a782acf683fbfc07589f61ad11de7bf347.tar.xz |
link against libz on non Apple/Windows
Needed by libcrypto at least
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c088f26d..0fe496c9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1113,7 +1113,8 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "(SunOS|Solaris)") set(EXTRA_LIBRARIES socket nsl resolv) elseif(NOT MSVC AND NOT DEPENDS) find_library(RT rt) - set(EXTRA_LIBRARIES ${RT}) + find_library(Z z) + set(EXTRA_LIBRARIES ${RT} ${Z}) endif() list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS}) |