[clockutils] Use vcpkg_from_github()

This commit is contained in:
Alexander Karatarakis 2018-05-31 13:52:01 -07:00
parent 55ed2f6ed8
commit 0a3f7be8b2

View File

@ -1,12 +1,14 @@
include(vcpkg_common_functions) include(vcpkg_common_functions)
set(VERSION 3651f232c27074c4ceead169e223edf5f00247c5)
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/clockUtils-${VERSION}) vcpkg_from_github(
vcpkg_download_distfile(ARCHIVE OUT_SOURCE_PATH SOURCE_PATH
URLS "https://github.com/ClockworkOrigins/clockUtils/archive/${VERSION}.tar.gz" REPO ClockworkOrigins/clockUtils
FILENAME "clockUtils-${VERSION}.tar.gz" REF 3651f232c27074c4ceead169e223edf5f00247c5
SHA512 ddb70cae9ced25de77a2df1854dac15e58a77347042ba3ee9c691f85f49edbc6539c84929a7477d429fb9161ba24c57d24d767793b8b1180216d5ddfc5d3ed6a SHA512 ddb70cae9ced25de77a2df1854dac15e58a77347042ba3ee9c691f85f49edbc6539c84929a7477d429fb9161ba24c57d24d767793b8b1180216d5ddfc5d3ed6a
HEAD_REF dev-1.2
PATCHES
"${CURRENT_PORT_DIR}/fix-warningC4643.patch"
) )
vcpkg_extract_source_archive(${ARCHIVE})
if (VCPKG_CRT_LINKAGE STREQUAL dynamic) if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
SET(SHARED_FLAG ON) SET(SHARED_FLAG ON)
@ -14,11 +16,6 @@ else()
SET(SHARED_FLAG OFF) SET(SHARED_FLAG OFF)
endif() endif()
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES "${CURRENT_PORT_DIR}/fix-warningC4643.patch"
)
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
OPTIONS OPTIONS