let cmake deal with VS2022 instead :)

develop
Amber Brown 2023-01-14 14:07:14 +11:00
parent 3459d61dc4
commit 80428d8e6d
7 changed files with 6 additions and 23 deletions

@ -1,3 +1 @@
call msvc_include.bat cmake --build VC2022 -t ALL_BUILD -- /m /p:Platform=x64 /p:Configuration=RelWithDebInfo
%msbuild% /m /p:Platform=x64 /p:Configuration=RelWithDebInfo VC2022/ALL_BUILD.vcxproj

@ -1,3 +1 @@
call msvc_include.bat cmake --build VC2022 -t ALL_BUILD -- /m /p:Platform=x64 /p:Configuration=Release
%msbuild% /m /p:Platform=x64 /p:Configuration=Release VC2022/ALL_BUILD.vcxproj
pause

@ -1,2 +1 @@
call msvc_include.bat cmake --build VC2022 -t INSTALL -- /m /p:Platform=x64 /p:Configuration=RelWithDebInfo
%msbuild% /m /p:Platform=x64 /p:Configuration=RelWithDebInfo VC2022/INSTALL.vcxproj

@ -1,2 +1 @@
call msvc_include.bat cmake --build VC2022 -t INSTALL -- /m /p:Platform=x64 /p:Configuration=Release
%msbuild% /m /p:Platform=x64 /p:Configuration=Release VC2022/INSTALL.vcxproj

@ -1,9 +0,0 @@
@ECHO OFF
setlocal enabledelayedexpansion
FOR /F "usebackq tokens=*" %%F IN (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -requires Microsoft.Component.MSBuild -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -version [17.0^,] -products * -find MSBuild\**\Bin\MSBuild.exe`) DO (
endlocal & set "MSBUILD="%%F""
goto :EOF
)
echo "Cannot find a Visual Studio 2022/Build Tools installation"
exit 1

@ -1,3 +1,2 @@
call msvc_include.bat cmake --build VC2022 -t PACKAGE -- /m /p:Platform=x64 /p:Configuration=RelWithDebInfo
%msbuild% /m /p:Platform=x64 /p:Configuration=RelWithDebInfo VC2022/PACKAGE.vcxproj
exit %ERRORLEVEL% exit %ERRORLEVEL%

@ -1,2 +1 @@
call msvc_include.bat cmake --build VC2022 -t PACKAGE -- /m /p:Platform=x64 /p:Configuration=Release
%msbuild% /m /p:Platform=x64 /p:Configuration=Release VC2022/PACKAGE.vcxproj