From: Slawomir Cygan Date: Fri, 23 Aug 2019 12:33:19 +0000 (+0200) Subject: Explicitly use -A Win32 platform in CMake Visual Studio 2019 builds X-Git-Tag: upstream/1.3.5~1811^2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a653debe1b4bc8a6d0c94c774aad4f3fcdda1595;p=platform%2Fupstream%2FVK-GL-CTS.git Explicitly use -A Win32 platform in CMake Visual Studio 2019 builds 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 --- diff --git a/scripts/build/config.py b/scripts/build/config.py index bf6771b..ad264f5 100644 --- a/scripts/build/config.py +++ b/scripts/build/config.py @@ -133,11 +133,14 @@ class VSProjectGenerator(CMakeGenerator): platform = None - if arch == self.ARCH_64BIT: - if version >= 16: - # From VS2019 onwards, the architecture is given by -A switch + if version >= 16: + # From VS2019 onwards, the architecture is given by -A 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)