Visual Studio 10 2010.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. Visual Studio 10 2010
  2. ---------------------
  3. Generates Visual Studio 10 (VS 2010) project files.
  4. For compatibility with CMake versions prior to 3.0, one may specify this
  5. generator using the name ``Visual Studio 10`` without the year component.
  6. Project Types
  7. ^^^^^^^^^^^^^
  8. Only Visual C++ and C# projects may be generated. Other types of
  9. projects (Database, Website, etc.) are not supported.
  10. Platform Selection
  11. ^^^^^^^^^^^^^^^^^^
  12. The default target platform name (architecture) is ``Win32``.
  13. The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
  14. via the :manual:`cmake(1)` ``-A`` option, to specify a target platform
  15. name (architecture). For example:
  16. * ``cmake -G "Visual Studio 10 2010" -A Win32``
  17. * ``cmake -G "Visual Studio 10 2010" -A x64``
  18. * ``cmake -G "Visual Studio 10 2010" -A Itanium``
  19. For compatibility with CMake versions prior to 3.1, one may specify
  20. a target platform name optionally at the end of the generator name.
  21. This is supported only for:
  22. ``Visual Studio 10 2010 Win64``
  23. Specify target platform ``x64``.
  24. ``Visual Studio 10 2010 IA64``
  25. Specify target platform ``Itanium``.
  26. Toolset Selection
  27. ^^^^^^^^^^^^^^^^^
  28. The ``v100`` toolset that comes with Visual Studio 10 2010 is selected by
  29. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  30. via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.