From 4cb67002e361d792f8c6fdfca988ac2fccfa4fec Mon Sep 17 00:00:00 2001 From: SASANO Takayoshi Date: Mon, 29 Sep 2025 10:06:59 +0900 Subject: [PATCH] CMakeLists.txt: fix -lreadline not found error --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 311bffcf..16838381 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,6 +138,7 @@ if (NOT MSVC) message(SEND_ERROR "libreadline: required version 6.0 or later") endif() set(READLINE_LIBRARIES ${readline_LIBRARIES}) + link_directories(${readline_LIBRARY_DIRS}) endif () # ASIO if (OPENDHT_HTTP OR OPENDHT_PEER_DISCOVERY)