summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-15 16:38:22 -0400
committerJune McEnroe <june@causal.agency>2022-03-15 16:38:22 -0400
commit40a1211b11a9968de89580f03bbb4d056e2861a1 (patch)
tree9a51fcb8356bb5bde50318101206a26fe48e852a
parentdash: Link with editline via pkg-config (diff)
downloaddash-40a1211b11a9968de89580f03bbb4d056e2861a1.tar.gz
dash-40a1211b11a9968de89580f03bbb4d056e2861a1.zip
dash: Unset LIBEDIT_FOUND if PkgConfig fails HEAD master
-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)