Ensure DEBUG_ENABLED define gets set when building in debug mode 51/194551/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 5 Dec 2018 16:08:36 +0000 (16:08 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 5 Dec 2018 16:13:44 +0000 (16:13 +0000)
Change-Id: Ia39c86cf9bd73dc678081be2287008949fbe4c16

build/tizen/CMakeLists.txt

index 3375473cfdd70a3126f66825eb5d92a72f5fc5ef..22077aebb5b3beb162053453e073506eb91dd986 100644 (file)
@@ -146,6 +146,10 @@ ENDFOREACH(flag)
 
 SET(DALI_DEMO_CFLAGS "-DDEMO_GAME_DIR=${DEMO_GAME_DIR} -DDEMO_IMAGE_DIR=${DEMO_IMAGE_DIR} -DDEMO_VIDEO_DIR=${DEMO_VIDEO_DIR} -DDEMO_MODEL_DIR=${DEMO_MODEL_DIR} -DDEMO_SCRIPT_DIR=${DEMO_SCRIPT_DIR} -DDEMO_SHADER_DIR=${DEMO_SHADER_DIR}  -DDEMO_STYLE_DIR=${DEMO_STYLE_DIR} -DDEMO_THEME_PATH=${DEMO_THEME_PATH} -DDEMO_EXAMPLE_BIN=${DEMO_EXAMPLE_BIN} -DDEMO_LOCALE_DIR=${DEMO_LOCALE_DIR} -fvisibility=hidden -DHIDE_DALI_INTERNALS -DDEMO_LANG=${DEMO_LANG}")
 
+IF(DEFINED DEBUG_ENABLED)
+  SET(DALI_DEMO_CFLAGS "${DALI_DEMO_CFLAGS} -DDEBUG_ENABLED")
+ENDIF()
+
 ###########################################################################
 # Internationalization