From 2e73bbf477b9044755a13af46c9c7deb108e5aca Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 12 Sep 2026 08:59:08 +0800 Subject: Check cmake dependency. --- Makefile | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3