Control build type by CONFIG_DEBUG option

This commit is contained in:
Henning Rogge 2017-06-08 19:06:40 +02:00
parent 5a9cd902ab
commit 560504b852

View File

@ -28,7 +28,10 @@ CMAKE_OPTIONAL_PLUGINS:= $(subst $(SPACE),;,$(strip \
$(if $(filter y,$(CONFIG_OONF_GENERIC_HTTP)),http,) \
))
CMAKE_OPTIONS=-D OONF_NO_WERROR:Bool=true \
BUILD_TYPE:= $(if $(filter y,$(CONFIG_DEBUG)),Debug,Release)
CMAKE_OPTIONS=-D CMAKE_BUILD_TYPE:String=$(BUILD_TYPE) \
-D OONF_NO_WERROR:Bool=true \
-D OONF_LOGGING_LEVEL:String=debug \
-D OONF_NO_TESTING:Bool=true \
-D UCI:Bool=true \