From: Henning Rogge Date: Thu, 8 Jun 2017 17:06:40 +0000 (+0200) Subject: Control build type by CONFIG_DEBUG option X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=560504b85200527c6570dc920ec37dae73d096a0;p=feed%2Frouting.git Control build type by CONFIG_DEBUG option --- 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 \