Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano committed Apr 26, 2024
1 parent 2d839d4 commit 69e30e1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,20 @@ RUN Start-Process -FilePath "$env:TEMP\vs_buildtools.exe" \
"--includeRecommended" \
-Wait

# install git from choco
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); \
choco install git -y --no-progress

# install vcpkg
# RUN $env:VCPKG_INSTALL_DIR="c:\\vcpkg"
# RUN $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
RUN git clone https://github.com/microsoft/vcpkg c:\vcpkg && \
cd c:\vcpkg && \
bootstrap-vcpkg.bat -disableMetrics && \
RUN git clone https://github.com/microsoft/vcpkg c:\vcpkg; \
cd c:\vcpkg; \
bootstrap-vcpkg.bat -disableMetrics; \
.\vcpkg install cgal boost-program-options boost-timer boost-test --triplet x64-windows

# build sfcgal
RUN cd $env:starter_path && \
RUN cd $env:starter_path; \
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSFCGAL_BUILD_TESTS=OFF -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_INSTALL_DIR\scripts\buildsystems\vcpkg.cmake"

# Restore default shell for Windows containers.
Expand Down

0 comments on commit 69e30e1

Please sign in to comment.