mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 06:30:25 +08:00
08c951fef9
* [many ports] Upgrades to 2020.02.08 * Undo asio asmjit libimobiledevice mlpack mongo-c-driver oniguruma openmvg openvdb pcl * Update ci baseline file Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
25 lines
821 B
CMake
25 lines
821 B
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/snappy
|
|
REF 537f4ad6240e586970fe554614542e9717df7902 # 1.1.8
|
|
SHA512 555d3b69a6759592736cbaae8f41654f0cf14e8be693b5dde37640191e53daec189f895872557b173e905d10681ef502f3e6ed8566811add963ffef96ce4016d
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DSNAPPY_BUILD_TESTS=OFF
|
|
-DCMAKE_DEBUG_POSTFIX=d)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Snappy)
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/snappy)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/snappy/COPYING ${CURRENT_PACKAGES_DIR}/share/snappy/copyright)
|