From fbd8c07e2d13a0e92806327f951ebb14d9ef3251 Mon Sep 17 00:00:00 2001
From: Maxence Naud <maxence.naud@cea.fr>
Date: Thu, 23 Jan 2025 16:55:43 +0000
Subject: [PATCH] Update cibuildwheel_windows.gitlab-ci.yml

---
 .gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml b/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
index c1b3153..704e6ee 100644
--- a/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
+++ b/.gitlab/ci/release/cibuildwheel_windows.gitlab-ci.yml
@@ -51,7 +51,7 @@ release:pip:windows:
     - choco install python -y
     - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
     # Explicitly set up Visual Studio environment
-    - $vsPath = "C:\Program Files\Microsoft Visual Studio\2022\BuildTools"
+    - call "C:\Program Files\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat"
     - Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
     - Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
     - py -m pip install cibuildwheel==2.22.0
@@ -60,7 +60,7 @@ release:pip:windows:
     - !reference [.windows:download:repositories, before_script] 
  
   script:
-    - $env:CMAKE_GENERATOR = "NMake Makefiles"
+    - $env:CMAKE_GENERATOR = "Visual Studio 17 2022"
     - python -m cibuildwheel --output-dir wheelhouse --platform windows --verbose
 
 
-- 
GitLab