I have a C++ program that depends on two packages, A and B. Now both have internally a dependency on C (so A->C and B->C). When I find_package(A) some targets are defined as a result of it internally doing a find_dependency(C), but then doing find_package(B) results on an error because those targets are being imported again.
I don’t really have control on the internals of these A and B libraries. What would be the best way to solve this?