Skip to content

Commit

Permalink
resources: set zlib_root cmake option
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Mar 12, 2024
1 parent 51a82de commit c4414f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/win/make_release_binaries.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ cd $VCPKG_PATH

$env:OPENSSL_ROOT_DIR ="$VCPKG_PATH/packages/openssl_$ARCH-windows"
$env:Path ="$VCPKG_PATH\packages\zlib_$ARCH-windows\bin;$env:Path"
$env:ZLIB_ROOT = "$VCPKG_PATH\packages\zlib_$ARCH-windows"

# Build for x86 architecture
cd $SOURCE_DIR
mkdir $BUILD_DIR; cd $BUILD_DIR
cmake -A "$CMAKE_ARCH" -DVERBOSE_CMAKE=1 -DGETOPT_LIB_DIR="$VCPKG_PATH/packages/getopt-win32_$ARCH-windows/lib" -DGETOPT_INCLUDE_DIR="$VCPKG_PATH/packages/getopt-win32_$ARCH-windows/include" -DZLIB_LIB_DIR="$VCPKG_PATH/packages/zlib_$ARCH-windows/lib" -DZLIB_INCL_DIR="$VCPKG_PATH/packages/zlib_$ARCH-windows/include" -DCMAKE_INSTALL_PREFIX="$RELEASE_DIR" ..
cmake -A "$CMAKE_ARCH" -DVERBOSE_CMAKE=1 -DGETOPT_LIB_DIR="$VCPKG_PATH/packages/getopt-win32_$ARCH-windows/lib" -DGETOPT_INCLUDE_DIR="$VCPKG_PATH/packages/getopt-win32_$ARCH-windows/include" -DZLIB_ROOT="$VCPKG_PATH\packages\zlib_$ARCH-windows" -DCMAKE_INSTALL_PREFIX="$RELEASE_DIR" ..
cmake --build . -v --config Release
cmake --install .
cd $RELEASE_DIR/bin
Expand Down

0 comments on commit c4414f4

Please sign in to comment.