From 560504b85200527c6570dc920ec37dae73d096a0 Mon Sep 17 00:00:00 2001 From: Henning Rogge Date: Thu, 8 Jun 2017 19:06:40 +0200 Subject: [PATCH] Control build type by CONFIG_DEBUG option --- oonf-olsrd2/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oonf-olsrd2/Makefile b/oonf-olsrd2/Makefile index f744861..c9d3d52 100644 --- a/oonf-olsrd2/Makefile +++ b/oonf-olsrd2/Makefile @@ -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 \ -- 2.30.2