mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
Makefile: allow configuration of CMake flags
Although CMAKE_FLAGS was already a Makefile variable, it didn't have an empty default value meaning that extending the flags to CMake in a clean way was difficult. Add a CMAKE_EXTRA_FLAGS variable which is appended to the default flags.
This commit is contained in:
parent
cf3322f8c2
commit
0a15feee9d
5
Makefile
5
Makefile
@ -2,6 +2,9 @@
|
||||
|
||||
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug
|
||||
|
||||
# Extra CMake flags which extend the default set
|
||||
CMAKE_EXTRA_FLAGS :=
|
||||
|
||||
build/bin/nvim: deps
|
||||
cd build && make
|
||||
|
||||
@ -15,7 +18,7 @@ deps: .deps/usr/lib/libuv.a
|
||||
|
||||
cmake: clean
|
||||
mkdir build
|
||||
cd build && cmake $(CMAKE_FLAGS) ../
|
||||
cd build && cmake $(CMAKE_FLAGS) $(CMAKE_EXTRA_FLAGS) ../
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
Loading…
Reference in New Issue
Block a user