• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1VS_STARTUP_PROJECT
2------------------
3
4.. versionadded:: 3.6
5
6Specify the default startup project in a Visual Studio solution.
7
8The :ref:`Visual Studio Generators` create a ``.sln`` file for each directory
9whose ``CMakeLists.txt`` file calls the :command:`project` command.  Set this
10property in the same directory as a :command:`project` command call (e.g. in
11the top-level ``CMakeLists.txt`` file) to specify the default startup project
12for the corresponding solution file.
13
14The property must be set to the name of an existing target.  This
15will cause that project to be listed first in the generated solution
16file causing Visual Studio to make it the startup project if the
17solution has never been opened before.
18
19If this property is not specified, then the ``ALL_BUILD`` project
20will be the default.
21