CMake/Tests/RunCMake/GeneratorPlatform
Brad King db02be85a0 VS: Provide the default platform name to project code
The value of `CMAKE_VS_PLATFORM_NAME` is computed by Visual Studio
generators based on `CMAKE_GENERATOR_PLATFORM` or some default.
Prior to the VS 2019 generator, the default was always `Win32`.
However, for the `Visual Studio 16 2019` generator, the default is
based on the host platform.

Store the default in a new `CMAKE_VS_PLATFORM_NAME_DEFAULT` variable for
use by project code.  This is particularly useful in toolchain files
because they are allowed to set `CMAKE_GENERATOR_PLATFORM` and so
`CMAKE_VS_PLATFORM_NAME` is not yet known.  Of course the toolchain file
author knows whether it will set `CMAKE_GENERATOR_PLATFORM`, and if not
then `CMAKE_VS_PLATFORM_NAME_DEFAULT` provides the platform name that
will be used.

Fixes: #19177
2019-04-19 07:46:13 -04:00
..
BadPlatform-result.txt
BadPlatform-stderr.txt
BadPlatform-toolchain.cmake
BadPlatform.cmake
BadPlatformToolchain-result.txt
BadPlatformToolchain-stderr.txt
BadPlatformToolchain.cmake
CMakeLists.txt
NoPlatform-result.txt
NoPlatform-stderr.txt
NoPlatform.cmake
RunCMakeTest.cmake
TestPlatform-toolchain.cmake VS: Provide the default platform name to project code 2019-04-19 07:46:13 -04:00
TestPlatformToolchain-result.txt
TestPlatformToolchain-stderr.txt VS: Provide the default platform name to project code 2019-04-19 07:46:13 -04:00
TestPlatformToolchain.cmake
TwoPlatforms-result.txt
TwoPlatforms-stderr.txt
TwoPlatforms.cmake
x64Platform-stdout.txt
x64Platform.cmake