2020-11-06 10:24:53 +08:00
|
|
|
set(RHASH_XVERSION 1.4.0)
|
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
2017-08-24 23:27:32 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rhash/RHash
|
2020-11-06 10:24:53 +08:00
|
|
|
REF df0c969966b5da10f2db5060cf329790db95080e # v1.4.0
|
|
|
|
SHA512 eebd5872f5d40d5ef5b7fe857ff3099c3b60e37cedaacf7ae8da63bd18790a16546de1809fa9f8e4fa7eef178121051b267fedd5d237135b80201f8609d613b6
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/librhash)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}/librhash
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG
|
2020-11-06 10:24:53 +08:00
|
|
|
-DRHASH_SKIP_HEADERS=ON
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-11-06 10:24:53 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|