mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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.
(cherry picked from commit ef8067a19d
)
This commit is contained in:
parent
e63e0a2e06
commit
8d842a301c
2
Makefile
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user