[CMake] cmake server-mode project order

Michael Jackson mike.jackson at bluequartz.net
Tue Feb 7 16:49:30 EST 2017


Tobias Hunger wrote:
>
>
> On Feb 7, 2017 20:43, "Brad King" <brad.king at kitware.com
> <mailto:brad.king at kitware.com>> wrote:
>
>     On 02/07/2017 02:23 PM, Michael Jackson wrote:
>      > Are there any improvements to the cmake -server mode? I am
>     testing the
>      > combination of QtCreator and CMake and there seemed to be an
>     issue where
>      > the list of projects are in Alphabetical order and not in a "top
>     down"
>      > order.
>
>     Tobias?
>
>
> I admit that I did not yet notice that yet:-) I turn the whole thing
> into a tree anyway and do not care about the order of the elements.
>
> Server-mode is not doing anything special, it just grabs the project
> list from cmGlobalGenerator::GetProjectMap() and dumps it. That is a
> map, so now that I think about it, it is sorted by name:-)
>
> Yes, I could re-sort that to be in another order.
>
> Best Regards,
> Tobisa

This comes off mainly as a visual issue but also a but of a usability 
issue. Our project is called "DREAM3D" but has a subproject called 
"AMProcessMonitoring". After loading the project in QtCreator 4.3 beta 
using CMake 3.7.1 (on OS X if that matters at all), the top level is 
listed as "AMProcessMonitoring". Everything generally compiles fine from 
there. If I close the project and go to QtCreators Welcome page I don't 
see "DREAM3D" anymore but I see "AMProcessMonitoring" instead. Clicking 
on the "AMProcessingMonitoring" link correctly opens the project. It is 
just odd to see it that way.

So if you could somehow mark the top level project when you get the list 
from CMake and percolate that to the QtCreator UI it would be really 
great. So far the combination of QtCreator 4.3 and CMake 3.7.1 has 
really great potential. There are still some rough spots but I generally 
am really happy with this combination now.
-- 
Michael A. Jackson                 400 S. Pioneer Blvd
Owner, President                   Springboro, Ohio 45066
BlueQuartz Software, LLC           EMail: mike.jackson at bluequartz.net
Voice: 937-790-1601                Web: http://www.bluequartz.net
Fax: 937-746-0783


More information about the CMake mailing list