mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cmake: fix setting NDEBUG definition
Closes https://github.com/espressif/esp-idf/issues/3596
This commit is contained in:
parent
826ff7186a
commit
6b8c31a198
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user