summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9009ccd..1dcdc18 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -126,6 +126,7 @@ if(WITH_LIBEDIT)
 	if(LIBEDIT_FOUND)
 		link_libraries(PkgConfig::LIBEDIT)
 	else()
+		unset(LIBEDIT_FOUND CACHE)
 		check_include_file("histedit.h" HAVE_HISTEDIT_H)
 		check_library_exists(edit history_init /usr/lib LIBEDIT_FOUND)
 		if(HAVE_HISTEDIT_H AND LIBEDIT_FOUND)