diff --git a/packaging/windows/internal/build_cmake.bat b/packaging/windows/internal/build_cmake.bat index a29160538d2..2ab4ad0b153 100644 --- a/packaging/windows/internal/build_cmake.bat +++ b/packaging/windows/internal/build_cmake.bat @@ -1,3 +1,3 @@ @echo on -msbuild "-p:Configuration=Release" "-p:BuildInParallel=true" "-p:MultiProcessorCompilation=true" "-p:CL_MPCount=%1" torchvision.vcxproj -maxcpucount:%1 -msbuild "-p:Configuration=Release" "-p:BuildInParallel=true" "-p:MultiProcessorCompilation=true" "-p:CL_MPCount=%1" INSTALL.vcxproj -maxcpucount:%1 +msbuild -p:Configuration=Release -maxcpucount -p:CL_MPCount=%1 torchvision.vcxproj +msbuild -p:Configuration=Release -maxcpucount -p:CL_MPCount=%1 INSTALL.vcxproj diff --git a/packaging/windows/internal/build_cpp_example.bat b/packaging/windows/internal/build_cpp_example.bat index e3f7afe9f02..b2a4343a46e 100644 --- a/packaging/windows/internal/build_cpp_example.bat +++ b/packaging/windows/internal/build_cpp_example.bat @@ -1,3 +1,3 @@ @echo on set CL=/I"C:\Program Files (x86)\torchvision\include" -msbuild "-p:Configuration=Release" "-p:BuildInParallel=true" "-p:MultiProcessorCompilation=true" "-p:CL_MPCount=%1" hello-world.vcxproj -maxcpucount:%1 +msbuild -p:Configuration=Release -maxcpucount -p:CL_MPCount=%1 hello-world.vcxproj diff --git a/packaging/windows/internal/build_frcnn.bat b/packaging/windows/internal/build_frcnn.bat index 36e3757d01c..59c42e85167 100644 --- a/packaging/windows/internal/build_frcnn.bat +++ b/packaging/windows/internal/build_frcnn.bat @@ -1,3 +1,3 @@ @echo on set CL=/I"C:\Program Files (x86)\torchvision\include" -msbuild "-p:Configuration=Release" "-p:BuildInParallel=true" "-p:MultiProcessorCompilation=true" "-p:CL_MPCount=%1" test_frcnn_tracing.vcxproj -maxcpucount:%1 +msbuild -p:Configuration=Release -maxcpucount -p:CL_MPCount=%1 test_frcnn_tracing.vcxproj