aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-11-27 22:43:45 +0200
committerRiccardo Spagni <ric@spagni.net>2017-11-27 22:43:46 +0200
commitc97bb7455fd2082b358cbe3f357fa8d861f8fc83 (patch)
treeedacc9bece96caa01742c24fa717ff227f5eafe2 /cmake
parentMerge pull request #2839 (diff)
parentcmake: fix building when readline is not found (diff)
downloadmonero-c97bb7455fd2082b358cbe3f357fa8d861f8fc83.tar.xz
Merge pull request #2841
36f0538a cmake: fix building when readline is not found (moneromooo-monero)
Diffstat (limited to 'cmake')
-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()