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

CMAKE_UNITY_BUILD and Text Editor warning

    XMLWordPrintable

Details

    • Windows
    • 78f89fc77 (master)

    Description

      If CMAKE_UNITY_BUILD is turned on for the project in a session, whenever you start QtCreator, or change to another project (with CMAKE_UNITY_BUILD on) or change build target, the editors start saying, "Warning: This file is not part of any project, The code model might have issues parsing this file properly".  

      Doing a build does not make the warnings go away, but running cmake does make it go away.  So I think this should be fixed by somehow running cmake 'under the hood' when opening projects or changing buld targets. Otherwise the user has to keep running cmake over and over and over again.  QtCreator should do this invisibly.

       (The reason CMAKE_UNITY_BUILD  issues may be surfacing now is that a recent QtBlog posting has a 2022 video on how to use cmake with Qt, and this video suggests using CMAKE_UNITY_BUILD  to speed up the build process, which it does)

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-29080
        # Subject Branch Project Status CR V

        Activity

          People

            cadam Cristian Adam
            chortlemortal David Casper
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes