mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 03:51:39 +08:00
5062df9228
* update zlib-ng to 2.1.4 * update baseline
28 lines
803 B
CMake
28 lines
803 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO zlib-ng/zlib-ng
|
|
REF "${VERSION}"
|
|
SHA512 5afda5ea4be84f7d7b016416a6eed18e2aab6c698f006cdfbc8f8b43ce3dc73c7994ab9d1ca090c1b93cb1aadc8747bfd8216afb22b44633d49127f01b77cfa2
|
|
HEAD_REF develop
|
|
PATCHES
|
|
fix-cflags.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DZLIB_FULL_VERSION=${ZLIB_FULL_VERSION}"
|
|
-DZLIB_ENABLE_TESTS=OFF
|
|
-DWITH_NEW_STRATEGIES=ON
|
|
OPTIONS_RELEASE
|
|
-DWITH_OPTIM=ON
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
)
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|