2019-01-26 05:07:17 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO effolkronium/random
|
2021-10-05 08:13:49 +08:00
|
|
|
REF v1.4.0
|
|
|
|
SHA512 B3DDEC048BBFB48877FD12295D4E0492E25976E1C4FE66F13E9E6E611DAAF654BD8D4AE75EA75125CB5AB420B82472C1CC1AB0BED3AEF632911B0934B45B23AF
|
2019-01-26 05:07:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-26 05:07:17 +08:00
|
|
|
OPTIONS
|
2021-10-20 09:30:16 +08:00
|
|
|
-DRandom_BuildTests=OFF
|
2019-01-26 05:07:17 +08:00
|
|
|
)
|
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-10-20 09:30:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME effolkronium_random CONFIG_PATH cmake)
|
2019-01-26 05:07:17 +08:00
|
|
|
|
2021-10-05 08:13:49 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2021-10-20 09:30:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|