[CMake] How to change default target in solution?

aaron.meadows at thomsonreuters.com aaron.meadows at thomsonreuters.com
Fri Mar 11 09:56:44 EST 2011


You can't.

The default target is stored in the .suo file.  That file is generated
by visual studio when it loads the solution file.  The rules that Visual
studio uses for chosing the default target are not published and don't
seem to make a lot of sense.  The reason that ALL_BUILD is marked as the
default target has to do with the order of projects listed in the
solution file generated by CMake.  That order is no adjustable in CMake,
and other factors can change the behavior. 

I had a conversation on the list this week about it already, with
regards to the project folders and getting ALL_BUILD to be placed in the
default cmake projects folder.  I played around with the generated
solution file, forcing ALL_BUILD into that folder manually, and it then
chose the INSTALL target as the default, even though all I had done was
add a refrence to the ALL_BUILD project in the folder grouping.  Weird.

You'll just have to chose the default target manually after loading the
solution.

 
Aaron C. Meadows 

-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Anton Sibilev
Sent: Friday, March 11, 2011 5:27 AM
To: cmake at cmake.org
Subject: [CMake] How to change default target in solution?

Hello! By default ALL_BUILD is main target, how can I change it?
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.




More information about the CMake mailing list