cmake: fix setting NDEBUG definition

Closes https://github.com/espressif/esp-idf/issues/3596
This commit is contained in:
Ivan Grokhotkov 2019-06-07 21:23:42 +08:00
parent 826ff7186a
commit 6b8c31a198

View File

@ -42,7 +42,7 @@ if(CONFIG_COMPILER_DISABLE_GCC8_WARNINGS)
endif()
if(CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE)
list(APPEND compile_definitions "NDEBUG")
list(APPEND compile_definitions "-DNDEBUG")
endif()
if(CONFIG_COMPILER_STACK_CHECK_MODE_NORM)