There is a new CMake switch "-A" for selecting a platform in
Visual Studion CMake generators.
It was set only for 64-bit builds (to x64), however it seems it does not
default to Win32 - so it must be set also for 32-bit builds.
Components: Framework
VK-GL-CTS Issue: 1950
Change-Id: I4d0e9f1a9c8dd0f3060e138f613c8e5326b6fc9f
platform = None
- if arch == self.ARCH_64BIT:
- if version >= 16:
- # From VS2019 onwards, the architecture is given by -A <platform-name> switch
+ if version >= 16:
+ # From VS2019 onwards, the architecture is given by -A <platform-name> switch
+ if arch == self.ARCH_64BIT:
platform = "x64"
- else:
+ elif arch == self.ARCH_32BIT:
+ platform = "Win32"
+ else:
+ if arch == self.ARCH_64BIT:
name += " Win64"
CMakeGenerator.__init__(self, name, isMultiConfig = True, extraBuildArgs = ['/m'], platform = platform)