From ef8067a19d981388a14407ea08245811cf5b3604 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 2 Sep 2024 12:51:30 +0200 Subject: [PATCH] build: add quotes around `CMAKE_GENERATOR` variable This will fix the following error when using generators that have a space in them, e.g. "Unix Makefiles": "CMake Error: Could not create named generator Unix". Closes https://github.com/neovim/neovim/issues/30218. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9317bea509..84d4859bb3 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ else TOUCH := touch RM := rm -rf CMAKE := $(shell (command -v cmake3 || echo cmake)) - CMAKE_GENERATOR ?= $(shell (command -v ninja > /dev/null 2>&1 && echo "Ninja") || echo "Unix Makefiles") + CMAKE_GENERATOR ?= "$(shell (command -v ninja > /dev/null 2>&1 && echo "Ninja") || echo "Unix Makefiles")" define rmdir rm -rf $1 endef