esp32, mbedtls: check component name when enabling test flags

Otherwise flags get enabled even when building tests for other components.
This commit is contained in:
Ivan Grokhotkov
2018-11-20 00:49:38 +08:00
parent 00a13bd8d3
commit 8027adaf81
4 changed files with 8 additions and 3 deletions

View File

@@ -158,7 +158,7 @@ else()
endif()
# Enable dynamic esp_timer overflow value if building unit tests
if(NOT "${BUILD_TEST_COMPONENTS}" EQUAL "")
if(esp32_test IN_LIST BUILD_TEST_COMPONENTS)
add_definitions(-DESP_TIMER_DYNAMIC_OVERFLOW_VAL)
endif()
endif()