aboutsummaryrefslogtreecommitdiff
path: root/ports/rapidjson
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-02 12:28:34 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-03-02 12:28:42 -0800
commite4a619c2ca355ecb26bb85882de29d8523ec6c33 (patch)
tree97b62a5d71080fde4b4311c3a05ed816dc2323ec /ports/rapidjson
parent1bcf4cef0dabd4b25acfb933f181d7f1ae1cc2a2 (diff)
downloadvcpkg-e4a619c2ca355ecb26bb85882de29d8523ec6c33.tar.gz
vcpkg-e4a619c2ca355ecb26bb85882de29d8523ec6c33.zip
[eigen3][libffi][libmysql][libwebp][rapidjson][websocketpp] Convert to use vcpkg_from_github
Diffstat (limited to 'ports/rapidjson')
-rw-r--r--ports/rapidjson/portfile.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/ports/rapidjson/portfile.cmake b/ports/rapidjson/portfile.cmake
index 80dc14f5d..1a44e592b 100644
--- a/ports/rapidjson/portfile.cmake
+++ b/ports/rapidjson/portfile.cmake
@@ -1,12 +1,13 @@
#header-only library
include(vcpkg_common_functions)
-SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidjson-1.1.0)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/miloyip/rapidjson/archive/v1.1.0.zip"
- FILENAME "rapidjson-v1.1.0.zip"
- SHA512 4ddbf6dc5d943eb971e7a62910dd78d1cc5cc3016066a443f351d4276d2be3375ed97796e672c2aecd6990f0b332826f8c8ddc7d367193d7b82f0037f4e4012c
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Tencent/rapidjson
+ REF v1.1.0
+ SHA512 aaa
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
# Put the licence file where vcpkg expects it
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson)