VS_STARTUP_PROJECT.rst 781 B

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