Skip to content

Commit

Permalink
zlib.sh: flatten if tree, add missed commit message [ci skip]
Browse files Browse the repository at this point in the history
Follow-up to a34bcc4
in which this change slipped in by accident.

It adapts to some of the build changes expected in the next zlib releases.
Untested.
  • Loading branch information
vszakats committed Feb 4, 2025
1 parent a34bcc4 commit 92d4346
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions zlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ _VER="$1"
options+=' -DZLIB_ENABLE_TESTS=OFF'
options+=' -DZLIBNG_ENABLE_TESTS=OFF'
options+=' -DWITH_GTEST=OFF'
elif [ "${_VER}" = '1.3.1' ]; then
options+=' -DZLIB_BUILD_EXAMPLES=OFF'
else
if [ "${_VER}" = '1.3.1' ]; then
options+=' -DZLIB_BUILD_EXAMPLES=OFF'
else
options+=' -DZLIB_BUILD_TESTING=OFF'
options+=' -DZLIB_BUILD_SHARED=OFF'
options+=' -DZLIB_BUILD_MINIZIP=OFF'
fi
options+=' -DZLIB_BUILD_TESTING=OFF'
options+=' -DZLIB_BUILD_SHARED=OFF'
options+=' -DZLIB_BUILD_MINIZIP=OFF'
fi

# `BUILD_SHARED_LIBS=OFF` broken as of zlib v1.3.
Expand Down

0 comments on commit 92d4346

Please sign in to comment.