Control build type by CONFIG_DEBUG option
authorHenning Rogge <hrogge@gmail.com>
Thu, 8 Jun 2017 17:06:40 +0000 (19:06 +0200)
committerHenning Rogge <hrogge@gmail.com>
Thu, 8 Jun 2017 17:06:40 +0000 (19:06 +0200)
oonf-olsrd2/Makefile

index f744861886e0315b5b73691d7830ae9fe771b899..c9d3d52be613ac569aa60004adea012f8f0a3f89 100644 (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 \