neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ef8067a19d981388a14407ea08245811cf5b3604
parent 60ea0467411d8452b0af75836aec377cbe781fbc
Author: dundargoc <gocdundar@gmail.com>
Date:   Mon,  2 Sep 2024 12:51:30 +0200

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:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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