The component I've written gets added by the component manager, in case that makes any difference.
/edit
Ok, apparently this has to be added manually... That's annoying.
Code: Select all
if(ESP_PLATFORM)
file(GLOB_RECURSE SRC src/*.c)
idf_component_register(SRCS ${SRC} INCLUDE_DIRS include REQUIRES driver)
idf_build_get_property(TGT IDF_TARGET)
string(TOUPPER ${TGT} TGT)
target_compile_definitions(${COMPONENT_LIB} PRIVATE CONFIG_IDF_TARGET_${TGT})
endif()
Also... dependencies added by the component manager aren't transitive.