VS_GLOBAL_SECTION_POST_section.rst 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. VS_GLOBAL_SECTION_POST_<section>
  2. --------------------------------
  3. Specify a postSolution global section in Visual Studio.
  4. Setting a property like this generates an entry of the following form
  5. in the solution file:
  6. ::
  7. GlobalSection(<section>) = postSolution
  8. <contents based on property value>
  9. EndGlobalSection
  10. The property must be set to a semicolon-separated list of ``key=value``
  11. pairs. Each such pair will be transformed into an entry in the
  12. solution global section. Whitespace around key and value is ignored.
  13. List elements which do not contain an equal sign are skipped.
  14. This property only works for Visual Studio 12 and above; it is ignored
  15. on other generators. The property only applies when set on a
  16. directory whose ``CMakeLists.txt`` contains a :command:`project` command.
  17. Note that CMake generates postSolution sections ``ExtensibilityGlobals``
  18. and ``ExtensibilityAddIns`` by default. If you set the corresponding
  19. property, it will override the default section. For example, setting
  20. ``VS_GLOBAL_SECTION_POST_ExtensibilityGlobals`` will override the default
  21. contents of the ``ExtensibilityGlobals`` section, while keeping
  22. ExtensibilityAddIns on its default. However, CMake will always
  23. add a ``SolutionGuid`` to the ``ExtensibilityGlobals`` section
  24. if it is not specified explicitly.