What and how to do with CMake files in such a away one would not have to take care of the dependency order? (see my previous question related the issue Strange error: undefined reference to `class::class()').
For instance if you have lib A dependent of lib B, which by its turn is dependent of lib C one would code
add_library({MY_LIB} A B C)
How to do to not be forced to follow the order? In the near past I just did
target_link_libraries({MY_LIB} {MY_LIB})
But this is no longer working for me.... I do not know why (???). This problem is quite irritating since I have a large number of interdependent libraries...
Any suggestion please (am using cmake 3.5.2, gcc version 4.8.4 on Ubuntu 4.8.4-2ubuntu1~14.04.3)?