vcpkg/ports/span-lite/portfile.cmake
Ryan 0144d0c0d0
[span-lite] update to 0.8.1 (#14414)
also converts control file

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-11-07 21:46:23 -08:00

30 lines
727 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO martinmoene/span-lite
REF v0.8.1
SHA512 c0bee9cea29f477ec93f706a455cc900cbb6048e40417ade0878cea3e3591657bb17dcd5f82621da0365477c1a0e0947f8dccef95761323674235adfdaf25c9a
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DSPAN_LITE_OPT_BUILD_TESTS=OFF
-DSPAN_LITE_OPT_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(
CONFIG_PATH lib/cmake/${PORT}
)
file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug
${CURRENT_PACKAGES_DIR}/lib
)
file(INSTALL
${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
)