2022-04-26 08:10:37 +08:00
|
|
|
set(RHASH_XVERSION 1.4.2)
|
2017-08-24 23:27:32 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rhash/RHash
|
2022-04-26 08:10:37 +08:00
|
|
|
REF 02c8b1dbae01c8d56613b6a3034c3698f94a52be # v1.4.2
|
|
|
|
SHA512 4c1d0a91a758ba85bc9ea194cf148834d6a0ebd849ed5384444798c522723ad78c3eedf65e7460fba61989a69b2c0f9a0f12bd6583381c544778c4b1c199a4ba
|
2020-11-06 10:24:53 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/librhash")
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/librhash"
|
2017-08-24 23:27:32 +08:00
|
|
|
OPTIONS_DEBUG
|
2020-11-06 10:24:53 +08:00
|
|
|
-DRHASH_SKIP_HEADERS=ON
|
|
|
|
)
|
2017-08-24 23:27:32 +08:00
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-08-24 23:27:32 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-04-26 08:10:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|