idf-component-manager icon indicating copy to clipboard operation
idf-component-manager copied to clipboard

Pure CMake component dependencies (IDFGH-13050) (PACMAN-932)

Open malachib opened this issue 1 year ago • 2 comments

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:

  1. Cannot make it interact with IDF component manager
  2. If main consuming app uses COMPONENTS main then pure cmake component can't find things like idf::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

malachib avatar Jun 17 '24 00:06 malachib

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.

kumekay avatar Oct 06 '25 16:10 kumekay

Hope so :) I am happy enough with the existing augmented-CMake arrangement, but raising this alternate form up would be incredibly useful.

malachib avatar Oct 06 '25 23:10 malachib