diff --git a/components/cmake/common_setup.cmake b/components/cmake/common_setup.cmake index fbeb2a30c68f..1418ed4bb7bc 100644 --- a/components/cmake/common_setup.cmake +++ b/components/cmake/common_setup.cmake @@ -70,7 +70,7 @@ set(CPPDEFS "${CPPDEFS} ${USER_CPPDEFS} -D${OS}") # SLIBS comes from Macros, so this append must come after Macros are included -if (DEBUG) +if (NOT DEBUG) set(CPPDEFS "${CPPDEFS} -DNDEBUG") endif()