Skip to content

Commit 720c2df

Browse files
committed
Use devenv to build Win from cmd
1 parent 0ee352f commit 720c2df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Build.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ goto CloneRepo
130130
cmake . -B%BUILDDIR% -G"Visual Studio 17" -A Win32 -DBRANCH=%branch%
131131

132132
if %use_msbuild% == 1 (
133-
msbuild %BUILDDIR%\source-python.sln /p:Configuration="Release" /p:VCTargetsPath="C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0"
133+
cd %BUILDDIR%
134+
135+
:: devenv is located in your Visual Studio installaton directory.
136+
:: If it's missing, add it to your PATH environment variable.
137+
devenv source-python.sln /build "Release"
134138
) else (
135139
:: Pause to show the process is completed
136140
pause

0 commit comments

Comments
 (0)