2019-09-17 04:12:04 +08:00
|
|
|
# WinReg - Header-only library
|
2020-04-22 04:17:32 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "linux" "osx")
|
2019-09-17 04:12:04 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO GiovanniDicanio/WinReg
|
2020-06-12 12:29:31 +08:00
|
|
|
REF d59fd46431f0c7ca5e3339918455b831c63bba25 #v3.1.0
|
|
|
|
SHA512 98dea669415dcb4e577c92506050a9defab5ac5f70e9d783d0b379297d84e0e2b56afc230b86ff190421a0d54b283e7abe72bb3cf53ecfe3fbe90f29c335e08c
|
2019-09-17 04:12:04 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# Copy the single reusable library header
|
2020-04-22 04:17:32 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/WinReg/WinReg.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
2019-09-17 04:12:04 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2019-09-29 17:30:06 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|