Skip to content

Commit

Permalink
maybe we can just do without cmake.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsg committed Jul 9, 2024
1 parent 58506ff commit 66bdb10
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand All @@ -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
Expand Down

0 comments on commit 66bdb10

Please sign in to comment.