heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap CMakeLists.txt

Merges https://github.com/espressif/esp-idf/pull/2498
This commit is contained in:
Paul Reimer 2018-09-30 16:45:51 -07:00 committed by Mahavir Jain
parent 288d9b75e9
commit b358581ab8

View file

@ -7,6 +7,10 @@ if(NOT CONFIG_HEAP_POISONING_DISABLED)
list(APPEND COMPONENT_SRCS "multi_heap_poisoning.c")
endif()
if(CONFIG_HEAP_TASK_TRACKING)
list(APPEND COMPONENT_SRCS "heap_task_info.c")
endif()
set(COMPONENT_ADD_INCLUDEDIRS "include")
set(COMPONENT_REQUIRES "")