I get this error while running cmake .
CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
"AAALib" of type STATIC_LIBRARY
depends on "AAA" (strong)
"AAA" of type EXECUTABLE
depends on "AAALib" (weak)
depends on "AAA_autogen" (strong)
"AAA_autogen" of type UTILITY
depends on "AAALib" (strong)
At least one of these targets is not a STATIC_LIBRARY. Cyclic dependencies are allowed only among static libraries.
CMake Generate step failed. Build files cannot be regenerated correctly.
Looking at the CMakeList.txt I do not see circle dependencies and it's building on other computers or another location.
What can cause this error if there is no real circle dependencies?
This error is thrown when the Unix Makefiles generator is used.
It works well when the Ninja generator is used.
UPDATE: upgrading cmake to 3.24.1 solved this issue