summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-09-12 08:59:08 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-09-12 08:59:08 +0800
commit2e73bbf477b9044755a13af46c9c7deb108e5aca (patch)
treec1b4c5eae281d4a6a43338a446ce1ed12388c36c
parentb9f1359eb15e3cc2602abdf320fd785e061c18bb (diff)
downloadlex-2e73bbf477b9044755a13af46c9c7deb108e5aca.tar.gz
Check cmake dependency.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b37ecfe..2763928 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,7 @@ $(OBJS): llm.h
# Download llama source and build statically
deps/lib/libllama.a deps/lib/libggml.a deps/lib/libggml-cpu.a:
+ @command -v cmake >/dev/null 2>&1 || { echo >&2 "===> Error: cmake is required but not installed. Aborting."; exit 1; }
@mkdir -p deps/lib deps/include
@echo "===> Downloading llama.cpp $(LLAMA_TAG) source..."
ftp -o $(LLAMA_TAR) $(LLAMA_URL)