diff options
author | Brad King <brad.king@kitware.com> | 2017-03-13 14:07:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-13 14:36:58 (GMT) |
commit | 3df2506fb549d57802ba2c7d99724210970791de (patch) | |
tree | 160a02b74605a133a648a093757786dd751d8e03 /Help/variable | |
parent | 60546b4829ecaa34da88c9a0993b38b967d25925 (diff) | |
download | CMake-3df2506fb549d57802ba2c7d99724210970791de.zip CMake-3df2506fb549d57802ba2c7d99724210970791de.tar.gz CMake-3df2506fb549d57802ba2c7d99724210970791de.tar.bz2 |
Help: Document VS generator toolset specification syntax
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_GENERATOR_TOOLSET.rst | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Help/variable/CMAKE_GENERATOR_TOOLSET.rst b/Help/variable/CMAKE_GENERATOR_TOOLSET.rst index 68e4eb1..11c37d7 100644 --- a/Help/variable/CMAKE_GENERATOR_TOOLSET.rst +++ b/Help/variable/CMAKE_GENERATOR_TOOLSET.rst @@ -24,5 +24,27 @@ See native build system documentation for allowed toolset names. Visual Studio Toolset Selection ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -On :ref:`Visual Studio Generators` the selected toolset name +The :ref:`Visual Studio Generators` support toolset specification +using one of these forms: + +* ``toolset`` +* ``toolset[,key=value]*`` +* ``key=value[,key=value]*`` + +The ``toolset`` specifies the toolset name. The selected toolset name is provided in the :variable:`CMAKE_VS_PLATFORM_TOOLSET` variable. + +The ``key=value`` pairs form a comma-separated list of options to +specify generator-specific details of the toolset selection. +Supported pairs are: + +``cuda=<version>`` + Specify the CUDA toolkit version to use. Supported by VS 2010 + and above with the CUDA toolkit VS integration installed. + See the :variable:`CMAKE_VS_PLATFORM_TOOLSET_CUDA` variable. + +``host=x64`` + Request use of the native ``x64`` toolchain on ``x64`` hosts. + Supported by VS 2013 and above. + See the :variable:`CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE` + variable. |