summaryrefslogtreecommitdiff
path: root/src/gui/curses
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-10-01 16:36:32 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-10-01 16:36:32 +0200
commit6bd0c63192e7acefbb7538a22aa061912cfc06f7 (patch)
tree2a8bc77faf556b5bda22e83409514fcdff3abd2f /src/gui/curses
parent879a548beae9b02da65526c1016c903d69c0225c (diff)
downloadweechat-6bd0c63192e7acefbb7538a22aa061912cfc06f7.zip
core: make zstd dependency optional (closes #2024)
Diffstat (limited to 'src/gui/curses')
-rw-r--r--src/gui/curses/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt
index 585c0d5a7..21e19aacb 100644
--- a/src/gui/curses/CMakeLists.txt
+++ b/src/gui/curses/CMakeLists.txt
@@ -48,7 +48,10 @@ list(APPEND EXTRA_LIBS "m")
list(APPEND EXTRA_LIBS ${CURL_LIBRARIES})
list(APPEND EXTRA_LIBS ${ZLIB_LIBRARY})
-list(APPEND EXTRA_LIBS ${LIBZSTD_LDFLAGS})
+
+if(ENABLE_ZSTD)
+ list(APPEND EXTRA_LIBS ${LIBZSTD_LDFLAGS})
+endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# link with resolv lib on macOS