Skip to content

Commit

Permalink
Attempt to fix MSVC compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed Oct 22, 2024
1 parent 4d1e271 commit 8cd1ef6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dependencies/setupLibzip.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ call setHopsanBuildPaths.bat

mkdir %builddir%
cd %builddir%
if "%HOPSAN_BUILD_COMPILER%" == "msvc" (
cmake -Wno-dev -G %HOPSAN_BUILD_CMAKE_GENERATOR% -DZLIB_INCLUDE_DIR="%zlibdir%/include" -DZLIB_LIBRARY="%zlibdir%/bin/zlib.dll" -DCMAKE_INSTALL_PREFIX="%installdir%" %codedir%
) else (
cmake -Wno-dev -G %HOPSAN_BUILD_CMAKE_GENERATOR% -DZLIB_INCLUDE_DIR="%zlibdir%/include" -DZLIB_LIBRARY="%zlibdir%/bin/libzlib.dll" -DCMAKE_INSTALL_PREFIX="%installdir%" %codedir%
)
cmake --build . --parallel 8
cmake --build . --target install

Expand Down

0 comments on commit 8cd1ef6

Please sign in to comment.