<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CMake Error: The inter-target dependency graph contains cycle]]></title><description><![CDATA[<p dir="auto">I am getting the following error while building my project. Here, none of "<em>MyProject_autogen</em>", "<em>MyProject_tooling</em>", "<em>MyProject_automoc_json_extraction</em>" are libraries/modules I <em>explicitly</em> created. They must be ones Qt is creating automatically.</p>
<p dir="auto">What are these libraries/modules and what commands in CMakeLists.txt result in their creation so I know which lines to fix?</p>
<pre><code>Error CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
  "MyProject_autogen" of type UTILITY
    depends on "MyProject_tooling" (strong)
  "MyProject_automoc_json_extraction" of type UTILITY
    depends on "MyProject_autogen" (strong)
  "MyProject_tooling" of type INTERFACE_LIBRARY
    depends on "MyProject_automoc_json_extraction" (strong)
</code></pre>
]]></description><link>https://forum.qt.io/topic/140794/cmake-error-the-inter-target-dependency-graph-contains-cycle</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 19:41:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/140794.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Nov 2022 05:03:52 GMT</pubDate><ttl>60</ttl></channel></rss>