From 66bdb10e7b84f8d2e8a0fd86d9487ea1c09ed34c Mon Sep 17 00:00:00 2001 From: Andrew Gorcester Date: Mon, 8 Jul 2024 23:32:24 -0700 Subject: [PATCH] maybe we can just do without cmake.exe --- scripts/windows/build.bat | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/windows/build.bat b/scripts/windows/build.bat index 6f7d37c0..f138d010 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 pip 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 pip cmake --build . --config "%CONFIGURATION%" --target install dir %CRC32C_INSTALL_PREFIX% /b /s popd