Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. CMake Error: The inter-target dependency graph contains cycle
Forum Update on Monday, May 27th 2025

CMake Error: The inter-target dependency graph contains cycle

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 503 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jaquilio
    wrote on 17 Nov 2022, 05:03 last edited by
    #1

    I am getting the following error while building my project. Here, none of "MyProject_autogen", "MyProject_tooling", "MyProject_automoc_json_extraction" are libraries/modules I explicitly created. They must be ones Qt is creating automatically.

    What are these libraries/modules and what commands in CMakeLists.txt result in their creation so I know which lines to fix?

    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)
    
    1 Reply Last reply
    0

    1/1

    17 Nov 2022, 05:03

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved