From 36f0538a0a91e86807379f68b7fb638ad93d4395 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 19 Nov 2017 09:27:26 +0000 Subject: cmake: fix building when readline is not found --- cmake/FindReadline.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') 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() -- cgit v1.2.3