mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-22 08:43:05 +08:00
482ee0e429
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> Co-authored-by: Kai Pastor <dg0yt@darc.de>
25 lines
711 B
CMake
25 lines
711 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO agl-alexglopez/str_view
|
|
REF "v${VERSION}"
|
|
SHA512 4dde3d91197ad78bbd808cc88058e6e1588c3ec3b6fbce198538b5ea390b1f3cc8429c76169794dec5d0576862e071feadb280128605ac30c2f12d25d66b9f34
|
|
HEAD_REF main
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
PACKAGE_NAME "str_view"
|
|
CONFIG_PATH "lib/cmake/str_view"
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|