aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-09-02 12:51:30 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-09-02 17:37:15 +0200
commitef8067a19d981388a14407ea08245811cf5b3604 (patch)
treed9d71945db004c3f5ed779092902cd6f09b0aa0e /Makefile
parent60ea0467411d8452b0af75836aec377cbe781fbc (diff)
downloadrneovim-ef8067a19d981388a14407ea08245811cf5b3604.tar.gz
rneovim-ef8067a19d981388a14407ea08245811cf5b3604.tar.bz2
rneovim-ef8067a19d981388a14407ea08245811cf5b3604.zip
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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