aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-12-16 23:26:13 +0200
committerRiccardo Spagni <ric@spagni.net>2017-12-16 23:26:13 +0200
commitec63d64a6799894a5eeb075acf6f2267f387aa61 (patch)
tree27444d10e7afe21bd28765b93fec9242ba303887
parentMerge pull request #2873 (diff)
parentfixed linking against libreadline on OpenBSD (diff)
downloadmonero-ec63d64a6799894a5eeb075acf6f2267f387aa61.tar.xz
Merge pull request #2874
25f4ab81 fixed linking against libreadline on OpenBSD (ston1th)
-rw-r--r--cmake/FindReadline.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindReadline.cmake b/cmake/FindReadline.cmake
index 5a8aa7b0a..cdce0bfca 100644
--- a/cmake/FindReadline.cmake
+++ b/cmake/FindReadline.cmake
@@ -68,3 +68,7 @@ main()
if(NOT Readline_LIBRARY)
set(Readline_LIBRARY "")
endif()
+
+if(Readline_LIBRARY AND OPENBSD)
+ list(APPEND EXTRA_LIBRARIES curses)
+endif()