Dev: Fix CMake generator platform for VS 2019 in PS scripts
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 9 Sep 2019 15:11:26 +0000 (17:11 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 9 Sep 2019 15:11:26 +0000 (17:11 +0200)
tools/win32/configure-dev.ps1

index a1f04ac6a441d32fd24b5324ae816db1c9e5d0a1..c905ca9a07d2d6582c24c1d22e09cde40a24b134 100644 (file)
@@ -24,6 +24,9 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
 if (-not (Test-Path env:CMAKE_GENERATOR)) {
   $env:CMAKE_GENERATOR = 'Visual Studio 16 2019'
 }
+if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
+  $env:CMAKE_GENERATOR_PLATFORM = 'x64'
+}
 if (-not (Test-Path env:OPENSSL_ROOT_DIR)) {
   $env:OPENSSL_ROOT_DIR = 'c:\local\OpenSSL-Win64'
 }