2017-05-05 07:23:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/snappy
|
2021-09-28 11:52:58 +08:00
|
|
|
REF 1.1.9
|
|
|
|
SHA512 F1F8A90F5F7F23310423574B1D8C9ACB84C66EA620F3999D1060395205E5760883476837ABA02F0AA913AF60819E34C625D8308C18A5D7A9C4E190F35968B024
|
2017-05-05 07:23:54 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2017-07-29 21:27:34 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
2018-03-13 00:16:43 +08:00
|
|
|
-DSNAPPY_BUILD_TESTS=OFF
|
2021-09-28 11:52:58 +08:00
|
|
|
-DSNAPPY_BUILD_BENCHMARKS=OFF
|
2018-03-13 00:16:43 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=d)
|
2017-05-05 07:23:54 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2017-07-29 21:27:34 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Snappy)
|
2017-05-05 07:23:54 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-07-29 21:27:34 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/snappy)
|
2017-05-05 07:23:54 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/snappy/COPYING ${CURRENT_PACKAGES_DIR}/share/snappy/copyright)
|