mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 17:49:02 +08:00
5aa33f1076
* Add port files for scope_guard * Add version for scope_guard * Update portfile.cmake with suggested changes * Update scope-guard.json --------- Co-authored-by: Frank <1433351828@qq.com>
13 lines
449 B
CMake
13 lines
449 B
CMake
# Header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO ricab/scope_guard
|
|
REF "v${VERSION}"
|
|
SHA512 48d75658c9f2c8770b6379f968ee498bc90b5e5e14f26c6e89ffd7d50a8230260db262da27fe4aa3c6c1b302fe73d9aa9a7c853e01adcf5a6313e3462d3a8407
|
|
HEAD_REF main
|
|
)
|
|
|
|
file(INSTALL "${SOURCE_PATH}/scope_guard.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|