Requires necessary?

AlexESP32
Posts: 65
Joined: Thu Oct 03, 2019 9:41 am

Requires necessary?

Postby AlexESP32 » Wed Jan 22, 2020 8:37 pm

Hello guys!

I have some question about CMake...
What is the REQUIRES at idf_component_register and when do I use it?

At example examples/system/console, there are components cmd_nvs & cmd_system:

Why is at cmd_nvs the REQUIRES console nvs_flash??

Thank you.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Requires necessary?

Postby ESP_Angus » Thu Jan 23, 2020 4:14 am

Hi Alex,

There are a description and an example in the build system docs for master branch:
https://docs.espressif.com/projects/esp ... quirements

(This applies to v4.1, v4.2 but basically the same thing applies to v4.0 just some of the syntax is different.)

Please have a read and let us know if you still have any questions.


Angus

Who is online

Users browsing this forum: HighVoltage and 90 guests