Merge branch 'bugfix/cmake_ndebug' into 'master'

cmake: fix setting NDEBUG definition

Closes IDFGH-1305

See merge request idf/esp-idf!5165
This commit is contained in:
Ivan Grokhotkov 2019-06-10 15:07:41 +08:00
commit 2c55fae6cf

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)