mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 23:07:56 +08:00
26 lines
764 B
CMake
26 lines
764 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO zlib-ng/zlib-ng
|
|
REF "${VERSION}"
|
|
SHA512 cb987c0b20a11fca5361dce94e53dead7364e739a984545c38ad4bf0c7fedd83d5d62530d979eca2182da88d7507a9bec8d3f5abff41e92ab5a63ac61001502e
|
|
HEAD_REF develop
|
|
)
|
|
|
|
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")
|