aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/src/CMakeLists.txt
diff options
context:
space:
mode:
authoriDunk5400 <iDunk5400@users.noreply.github.com>2019-09-07 22:02:11 +0200
committeriDunk5400 <iDunk5400@users.noreply.github.com>2019-09-07 22:02:11 +0200
commitab2819a365f0953c418b46269aa78ed72ec7ac37 (patch)
tree29d52c3e49bd03ad37b8d2cdc1b6c768928d5b88 /contrib/epee/src/CMakeLists.txt
parentMerge pull request #5824 (diff)
downloadmonero-ab2819a365f0953c418b46269aa78ed72ec7ac37.tar.xz
depends: attempt to fix readline
Make readline actually compile, and make ncurses use existing terminfo data (if available).
Diffstat (limited to '')
-rw-r--r--contrib/epee/src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/epee/src/CMakeLists.txt b/contrib/epee/src/CMakeLists.txt
index c512e3b86..5c92e32bd 100644
--- a/contrib/epee/src/CMakeLists.txt
+++ b/contrib/epee/src/CMakeLists.txt
@@ -29,7 +29,7 @@
add_library(epee STATIC byte_slice.cpp hex.cpp http_auth.cpp mlog.cpp net_helper.cpp net_utils_base.cpp string_tools.cpp wipeable_string.cpp
levin_base.cpp memwipe.c connection_basic.cpp network_throttle.cpp network_throttle-detail.cpp mlocker.cpp buffer.cpp net_ssl.cpp)
-if (USE_READLINE AND GNU_READLINE_FOUND)
+if (USE_READLINE AND (GNU_READLINE_FOUND OR DEPENDS AND NOT MINGW))
add_library(epee_readline STATIC readline_buffer.cpp)
endif()
@@ -62,7 +62,7 @@ target_link_libraries(epee
${OPENSSL_LIBRARIES}
${EXTRA_LIBRARIES})
-if (USE_READLINE AND GNU_READLINE_FOUND)
+if (USE_READLINE AND (GNU_READLINE_FOUND OR DEPENDS AND NOT MINGW))
target_link_libraries(epee_readline
PUBLIC
easylogging