diff options
author | Rich Wareham <rjw57@cam.ac.uk> | 2014-02-25 00:22:48 +0000 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-02-25 13:20:14 -0300 |
commit | 0a15feee9d0ceb051a66ec31eee60f5477359ee2 (patch) | |
tree | 7149934d2bea941b8c3e82d19427413106fc71f1 | |
parent | cf3322f8c2dc3c7a0a366546de0a6a25921d7165 (diff) | |
download | rneovim-0a15feee9d0ceb051a66ec31eee60f5477359ee2.tar.gz rneovim-0a15feee9d0ceb051a66ec31eee60f5477359ee2.tar.bz2 rneovim-0a15feee9d0ceb051a66ec31eee60f5477359ee2.zip |
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.
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |