esp-azure icon indicating copy to clipboard operation
esp-azure copied to clipboard

Dependency on main prevents use from other components (CA-124)

Open NathanJPhillips opened this issue 4 years ago • 2 comments

Referencing main from CMakeLists.txt creates a circular dependency that will in many cases cause undefined references during linking when esp-azure is REQUIREd by a component that is in turn REQUIREd by the main project.

Is this a known issue, are there reasons main needs to be referenced, or should I create a PR to remove this?

NathanJPhillips avatar Mar 10 '21 14:03 NathanJPhillips

I'm curious, what is the reason that main is required in your CMakeLists.txt? I'm learning the CMake build system. This might help me understand what I don't know that I don't know. ;)

liudr avatar Mar 11 '21 19:03 liudr

I ran into the circular dependency issue as well after restructuring some code. I also don't see a reason for the dependency on main, so it would be good if someone from Espressif can comment whether it can be removed or not.

jspngh avatar Jul 16 '21 12:07 jspngh