mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
build: fix handling of install prefix with CMAKE_EXTRA_FLAGS (#10530)
Append `CMAKE_INSTALL_PREFIX` to any given `CMAKE_EXTRA_FLAGS` always.
Regressed in 5031e3298.
Fixes https://github.com/neovim/neovim/issues/10524.
This commit is contained in:
2
Makefile
2
Makefile
@@ -21,7 +21,7 @@ CMAKE_INSTALL_PREFIX := $(shell echo $(CMAKE_EXTRA_FLAGS) | 2>/dev/null \
|
|||||||
grep -o 'CMAKE_INSTALL_PREFIX=[^ ]\+' | cut -d '=' -f2)
|
grep -o 'CMAKE_INSTALL_PREFIX=[^ ]\+' | cut -d '=' -f2)
|
||||||
endif
|
endif
|
||||||
ifneq (,$(CMAKE_INSTALL_PREFIX))
|
ifneq (,$(CMAKE_INSTALL_PREFIX))
|
||||||
CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_INSTALL_PREFIX)
|
override CMAKE_EXTRA_FLAGS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_INSTALL_PREFIX)
|
||||||
|
|
||||||
checkprefix:
|
checkprefix:
|
||||||
@if [ -f build/.ran-cmake ]; then \
|
@if [ -f build/.ran-cmake ]; then \
|
||||||
|
|||||||
Reference in New Issue
Block a user