[Qt-creator] QtCreator 4.3 Beta and CMake 3.7.x Server Mode Slowness

Tobias Hunger tobias.hunger at gmail.com
Wed Mar 29 19:23:25 CEST 2017


Hi Mike,

On Wed, Mar 29, 2017 at 3:24 PM, Mike Jackson <imikejackson at gmail.com> wrote:
>> Please try again with the upcoming nightly builds. For Cristian they make
>> things
>> work better: Initial project tree setup went down from 140s to 2s for his
>> project. I hope you will see similar results.
>
>
> I did a HUGE improvement in load speed. Not counting the actual running of
> CMake, the load time is definitely under 10 seconds now. MUCH much better.

Great!

> Is there anything I can do differently in our CMake files to get the headers
> to be actual project files. They all show with a light gray text which means
> code completion does not work in the files.

The light grey means they were not explicitly listed in cmake, but
cmake did have an include path to that location.

You should also get headers in black -- provided you listed your
headers as SOURCES in cmake. Those will be with the other sources in
the respective target.

Whether a header is grey or black should not have any influence on the
code model: It evaluates the include paths only.

> Thanks for the improvements.

I did look into the duplicate Source Directories you reported today.
Those are caused by the same target being listed for different
projects, but so far I could not see how those targets ended up in
different projects. I think that is not even allowed in cmake, IIRC
the target names need to be unique per build system. I will need to
check the docs again to make sure though.

I need to think about what to do in such a situation. It will probably
be best to mark up the targets as "project::target" or something and
keep them separate.

Best Regards,
Tobias



More information about the Qt-creator mailing list