Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 10.0.0
-
None
-
-
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)