2020-11-10 06:46:44 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PragmaTwice/protopuf
|
2022-06-09 23:38:12 +08:00
|
|
|
REF v2.2.0
|
|
|
|
SHA512 b7f00b1575b83ffad66e6fa555b2e420f1178ddf5b9aed64ae2c3af583e3d6c7292f0280e97cb91d4048cd0d0464ea89805f38444b86b7724abe03503682ac7f
|
2020-11-10 06:46:44 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-05 03:57:21 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-10 06:46:44 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2021-11-05 03:57:21 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup()
|
2020-11-10 06:46:44 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2021-11-05 03:57:21 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|