Make it easier to change CMAKE_BUILD_TYPE in your local.mk.

This commit is contained in:
John Szakmeister 2014-05-31 08:13:49 -04:00
parent d884945539
commit 4e1ca460e3

View File

@ -1,6 +1,8 @@
-include local.mk
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=Debug
CMAKE_BUILD_TYPE ?= Debug
CMAKE_FLAGS := -DCMAKE_BUILD_TYPE=$(CMAKE_BUILD_TYPE)
BUILD_TYPE ?= $(shell (type ninja > /dev/null 2>&1 && echo "Ninja") || \
echo "Unix Makefiles")