aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-19 09:27:26 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-19 09:27:26 +0000
commit36f0538a0a91e86807379f68b7fb638ad93d4395 (patch)
tree48a1ef7469aeb3976aca855836c2e9a126fbe435
parentMerge pull request #2818 (diff)
downloadmonero-36f0538a0a91e86807379f68b7fb638ad93d4395.tar.xz
cmake: fix building when readline is not found
-rw-r--r--cmake/FindReadline.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindReadline.cmake b/cmake/FindReadline.cmake
index 9ccef7ad8..5a8aa7b0a 100644
--- a/cmake/FindReadline.cmake
+++ b/cmake/FindReadline.cmake
@@ -64,3 +64,7 @@ main()
char * s = rl_copy_text(0, 0);
}
" GNU_READLINE_FOUND)
+
+if(NOT Readline_LIBRARY)
+ set(Readline_LIBRARY "")
+endif()