mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 19:57:57 +08:00
0144d0c0d0
also converts control file Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
30 lines
727 B
CMake
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
|
|
)
|