2020-11-10 06:46:44 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PragmaTwice/protopuf
|
2021-05-11 15:32:27 +08:00
|
|
|
REF v2.0.0
|
|
|
|
SHA512 30af4132e9fa04936da2d9639b98cc0080cb71a5a0bea8cdba149eb0948327b4427b2ea84c18d3302850b5ba63995101c5fd76f8f293f3419c3b037f9470aed1
|
2020-11-10 06:46:44 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|