diff options
author | Brad King <brad.king@kitware.com> | 2019-04-22 11:38:20 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-22 11:38:33 (GMT) |
commit | cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c (patch) | |
tree | 95826235038775468ac681b1dfef81afb5a9fc1d /Help/variable | |
parent | 8c322f9313e60af28d2deee739a88a683885e484 (diff) | |
parent | db02be85a0bcccb633b31f087cde96d95fd21e8f (diff) | |
download | CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.zip CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.tar.gz CMake-cb23f2ac8b2484c9bf1e0db78831b3ea8d54766c.tar.bz2 |
Merge topic 'vs-default-platform'
db02be85a0 VS: Provide the default platform name to project code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3246
Diffstat (limited to 'Help/variable')
-rw-r--r-- | Help/variable/CMAKE_VS_PLATFORM_NAME.rst | 4 | ||||
-rw-r--r-- | Help/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.rst | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/Help/variable/CMAKE_VS_PLATFORM_NAME.rst b/Help/variable/CMAKE_VS_PLATFORM_NAME.rst index a532743..7a4642a 100644 --- a/Help/variable/CMAKE_VS_PLATFORM_NAME.rst +++ b/Help/variable/CMAKE_VS_PLATFORM_NAME.rst @@ -1,8 +1,10 @@ CMAKE_VS_PLATFORM_NAME ---------------------- -Visual Studio target platform name. +Visual Studio target platform name used by the current generator. VS 8 and above allow project files to specify a target platform. CMake provides the name of the chosen platform in this variable. See the :variable:`CMAKE_GENERATOR_PLATFORM` variable for details. + +See also the :variable:`CMAKE_VS_PLATFORM_NAME_DEFAULT` variable. diff --git a/Help/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.rst b/Help/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.rst new file mode 100644 index 0000000..c18e6fd --- /dev/null +++ b/Help/variable/CMAKE_VS_PLATFORM_NAME_DEFAULT.rst @@ -0,0 +1,9 @@ +CMAKE_VS_PLATFORM_NAME_DEFAULT +------------------------------ + +Default for the Visual Studio target platform name for the current generator +without considering the value of the :variable:`CMAKE_GENERATOR_PLATFORM` +variable. For :ref:`Visual Studio Generators` for VS 2017 and below this is +always ``Win32``. For VS 2019 and above this is based on the host platform. + +See also the :variable:`CMAKE_VS_PLATFORM_NAME` variable. |