[cmake-developers] [CMake 0015931]: Change the StartUp-Solution by Value

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 21 13:26:39 EST 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://public.kitware.com/Bug/view.php?id=15931 
====================================================================== 
Reported By:                Luis Roalter
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15931
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-01-21 13:26 EST
Last Modified:              2016-01-21 13:26 EST
====================================================================== 
Summary:                    Change the StartUp-Solution by Value
Description: 
CMake always tries to set ALL_BUILD in Visual Studio Projects as the first
project in the Solution file. This is okay if I want to build all the content.
But sometimes it would be great to change this behavior to a custom project as
well. 

The point is: Pressing F5 in Studio (just run the Application) won't work. Sure,
you can setup the startup project manually. But it would be gread to set it
per-project (means per solution).

I've patched it to use CMAKE_STARTUP_SOLUTION. This exchanges the string
"ALL_BUILD" in the comparison of the project if possible.  It would be even
better to make something like

set_property(GLOBAL PROPERTY STARTUP_APPLICATION MainWindow). This should only
scope till the next project().

Steps to Reproduce: 
Just press F5 on a Studio-runnable application.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-01-21 13:26 Luis Roalter   New Issue                                    
======================================================================



More information about the cmake-developers mailing list