diff options
author | ston1th <ston1th@giftfish.de> | 2017-11-28 18:55:37 +0100 |
---|---|---|
committer | ston1th <ston1th@giftfish.de> | 2017-11-28 19:03:07 +0100 |
commit | 25f4ab81cee4ad505ffeba301e5e74b9bb8639d8 (patch) | |
tree | 719d6a3b6eda96b0869b5aef7342773b9d4f4c9f /cmake/FindReadline.cmake | |
parent | Merge pull request #2863 (diff) | |
download | monero-25f4ab81cee4ad505ffeba301e5e74b9bb8639d8.tar.xz |
fixed linking against libreadline on OpenBSD
To fix the linking error described here https://github.com/monero-project/monero/pull/2841#issuecomment-346129030 we also need to link libcurses.
Diffstat (limited to '')
-rw-r--r-- | cmake/FindReadline.cmake | 4 |
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() |