Pure CMake component dependencies (IDFGH-13050) (PACMAN-932)
Answers checklist.
- [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
- [X] I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
I'm exploring "pure" CMake components (libraries only) as per https://docs.espressif.com/projects/esp ... components
Two related issues I face:
- Cannot make it interact with IDF component manager
- If main consuming app uses
COMPONENTS mainthen pure cmake component can't find things likeidf::nvs_flash
What do you recommend to overcome these issues, especially the first one? Placing dependency management out in consuming app feels more like a workaround than a solution
Hello @malachib,
The current build system of ESP-IDF is somewhat inflexible: You either use it with all it's features including the comopnent manager, or use pure CMake approach leaving many features behind.
The next major release of ESP-IDF may introduce a new iteration of build system which will make it possible to combine both ways.
Hope so :) I am happy enough with the existing augmented-CMake arrangement, but raising this alternate form up would be incredibly useful.