mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 17:19:03 +08:00
29 lines
880 B
CMake
29 lines
880 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO agl-alexglopez/str_view
|
|
REF "v${VERSION}"
|
|
SHA512 7271616a9469e68f9d2125cd6ba2e909172329b61d93f00c29139deb73128353a0c4e60340b217ff85379b494eeb6920eb55203085573e14e993340d3c97fba3
|
|
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"
|
|
)
|
|
|
|
vcpkg_copy_pdbs()
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/str_view/str_view.h" "defined(SV_CONSUME_DLL)" "1")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|