Visual Studio 10 2010.rst 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Visual Studio 10 2010
  2. ---------------------
  3. Deprecated. Generates Visual Studio 10 (VS 2010) project files.
  4. .. note::
  5. This generator is deprecated and will be removed in a future version
  6. of CMake. It will still be possible to build with VS 10 2010 tools
  7. using the :generator:`Visual Studio 11 2012` (or above) generator
  8. with :variable:`CMAKE_GENERATOR_TOOLSET` set to ``v100``, or by
  9. using the :generator:`NMake Makefiles` generator.
  10. For compatibility with CMake versions prior to 3.0, one may specify this
  11. generator using the name ``Visual Studio 10`` without the year component.
  12. Project Types
  13. ^^^^^^^^^^^^^
  14. Only Visual C++ and C# projects may be generated (and Fortran with
  15. Intel compiler integration). Other types of projects (Database,
  16. Website, etc.) are not supported.
  17. Platform Selection
  18. ^^^^^^^^^^^^^^^^^^
  19. The default target platform name (architecture) is ``Win32``.
  20. .. versionadded:: 3.1
  21. The :variable:`CMAKE_GENERATOR_PLATFORM` variable may be set, perhaps
  22. via the :manual:`cmake(1)` ``-A`` option, to specify a target platform
  23. name (architecture). For example:
  24. * ``cmake -G "Visual Studio 10 2010" -A Win32``
  25. * ``cmake -G "Visual Studio 10 2010" -A x64``
  26. * ``cmake -G "Visual Studio 10 2010" -A Itanium``
  27. For compatibility with CMake versions prior to 3.1, one may specify
  28. a target platform name optionally at the end of the generator name.
  29. This is supported only for:
  30. ``Visual Studio 10 2010 Win64``
  31. Specify target platform ``x64``.
  32. ``Visual Studio 10 2010 IA64``
  33. Specify target platform ``Itanium``.
  34. Toolset Selection
  35. ^^^^^^^^^^^^^^^^^
  36. The ``v100`` toolset that comes with Visual Studio 10 2010 is selected by
  37. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  38. via the :manual:`cmake(1)` ``-T`` option, to specify another toolset.