Visual Studio 11 2012.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Visual Studio 11 2012
  2. ---------------------
  3. Deprecated. Generates Visual Studio 11 (VS 2012) 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 11 2012 tools
  7. using the :generator:`Visual Studio 12 2013` (or above) generator
  8. with :variable:`CMAKE_GENERATOR_TOOLSET` set to ``v110``, 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 11" 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 (JavaScript,
  16. Database, 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 :option:`cmake -A` option, to specify a target platform
  23. name (architecture). For example:
  24. * ``cmake -G "Visual Studio 11 2012" -A Win32``
  25. * ``cmake -G "Visual Studio 11 2012" -A x64``
  26. * ``cmake -G "Visual Studio 11 2012" -A ARM``
  27. * ``cmake -G "Visual Studio 11 2012" -A <WinCE-SDK>``
  28. (Specify a target platform matching a Windows CE SDK name.)
  29. For compatibility with CMake versions prior to 3.1, one may specify
  30. a target platform name optionally at the end of the generator name.
  31. This is supported only for:
  32. ``Visual Studio 11 2012 Win64``
  33. Specify target platform ``x64``.
  34. ``Visual Studio 11 2012 ARM``
  35. Specify target platform ``ARM``.
  36. ``Visual Studio 11 2012 <WinCE-SDK>``
  37. Specify target platform matching a Windows CE SDK name.
  38. Toolset Selection
  39. ^^^^^^^^^^^^^^^^^
  40. The ``v110`` toolset that comes with Visual Studio 11 2012 is selected by
  41. default. The :variable:`CMAKE_GENERATOR_TOOLSET` option may be set, perhaps
  42. via the :option:`cmake -T` option, to specify another toolset.