VS_STARTUP_PROJECT.rst 804 B

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