diff --git a/scripts/windows/build.bat b/scripts/windows/build.bat index 6f7d37c0..d9eba5f9 100644 --- a/scripts/windows/build.bat +++ b/scripts/windows/build.bat @@ -33,11 +33,8 @@ FOR %%P IN (3.8, 3.9, 3.10, 3.11, 3.12) DO ( py -%%P-64 -m pip install --upgrade pip - set TARGET=%cd%\%%P-install\ - mkdir !TARGET! - echo "Installing cmake for Python %%P" - py -%%P-64 -m pip install cmake --target=!TARGET! + py -%%P-64 -m pip install cmake @rem Add directory as safe to avoid "detected dubious ownership" fatal issue git config --global --add safe.directory %cd% @@ -57,11 +54,11 @@ FOR %%P IN (3.8, 3.9, 3.10, 3.11, 3.12) DO ( mkdir build cd build - echo "Running cmake at !TARGET!\bin\cmake with Generator: %CMAKE_GENERATOR%, Platform: x64, Install Prefix: %CRC32C_INSTALL_PREFIX%" + echo "Running cmake with Generator: %CMAKE_GENERATOR%, Platform: x64, Install Prefix: %CRC32C_INSTALL_PREFIX%" - !TARGET!\bin\cmake -G %CMAKE_GENERATOR% -A x64 -DCRC32C_BUILD_BENCHMARKS=no -DCRC32C_BUILD_TESTS=no -DBUILD_SHARED_LIBS=yes -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=yes -DCRC32C_USE_GLOG=0 -DCMAKE_INSTALL_PREFIX:PATH=%CRC32C_INSTALL_PREFIX% .. + py -%%P-64 -m cmake -G %CMAKE_GENERATOR% -A x64 -DCRC32C_BUILD_BENCHMARKS=no -DCRC32C_BUILD_TESTS=no -DBUILD_SHARED_LIBS=yes -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=yes -DCRC32C_USE_GLOG=0 -DCMAKE_INSTALL_PREFIX:PATH=%CRC32C_INSTALL_PREFIX% .. - !TARGET!\bin\cmake --build . --config "%CONFIGURATION%" --target install + py -%%P-64 -m cmake --build . --config "%CONFIGURATION%" --target install dir %CRC32C_INSTALL_PREFIX% /b /s popd