Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26139

CMake build doesn't regenerate mocs on configuration changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 5.0.0
    • Building Qt Creator
    • None
    • Windows, CMake 3.20.5

    Description

      I suppose this is a cmake bug, but since cadam will most likely handle it anyway, I'll report it here

      I built Qt Creator in Release mode. The build was finished successfully.

      Then I changed the configuration and added WITH_TESTS. Most of the files were rebuilt, but the moc files weren't, so classes that are declared in #ifdef WITH_TESTS like Core::TestVersionControl did not have moc, then it failed to link.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes