From ea4af932aa89833b5b17d175c41cb16613ca61eb Mon Sep 17 00:00:00 2001 From: Omer Faruk Istikbal Date: Wed, 11 Feb 2026 23:07:22 +0300 Subject: [PATCH] fix GenerateProjectFiles.bat to support VS 2026 and CMake 4.x --- Build/GenerateProjectFiles.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Build/GenerateProjectFiles.bat b/Build/GenerateProjectFiles.bat index 05bed301..97096745 100644 --- a/Build/GenerateProjectFiles.bat +++ b/Build/GenerateProjectFiles.bat @@ -3,7 +3,7 @@ setlocal enabledelayedexpansion cd /d %~dp0 set LAUNCH_VS=1 -set SOLUTION_FILE=VQE.sln +set SOLUTION_FILE=VQE.slnx set SOLUTION_DIRECTORY=SolutionFiles :: parameter scan @@ -147,7 +147,7 @@ exit /b 0 :: :RunCmake -cmake ..\.. -G "Visual Studio 17 2022" -A x64 +cmake ..\.. -G "Visual Studio 18 2026" -A x64 -DCMAKE_POLICY_VERSION_MINIMUM=3.5 if !errorlevel! EQU 0 ( echo [VQBuild] Success! @@ -156,10 +156,10 @@ if !errorlevel! EQU 0 ( ) ) else ( echo. - echo [VQBuild] cmake VS2022 failed, retrying with VS2019... + echo [VQBuild] cmake VS2026 failed, retrying with VS2022... echo [VQBuild] removing %~dp0SolutionFiles ... rmdir /S /Q %~dp0SolutionFiles - cmake ..\.. -G "Visual Studio 16 2019" -A x64 + cmake ..\.. -G "Visual Studio 17 2022" -A x64 if !errorlevel! NEQ 0 ( echo [VQBuild] GenerateSolutions.bat: Error with CMake. No solution file generated after retrying. exit /b -1