2019-05-31 15:22:11 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/span-lite
|
2024-03-12 04:04:27 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 6e45f23a7274f851a3faefbff8278a3bee75eae91caf0b176dbbfc644639d999a3964d6d2282a7024422b4bc75ebb91b46b6aeb645204cdca3bae05a13c6aa53
|
2019-05-31 15:22:11 +08:00
|
|
|
)
|
|
|
|
|
2021-10-06 07:11:01 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-31 15:22:11 +08:00
|
|
|
OPTIONS
|
|
|
|
-DSPAN_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DSPAN_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-06 07:11:01 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-31 15:22:11 +08:00
|
|
|
|
2021-10-06 07:11:01 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
CONFIG_PATH "lib/cmake/${PORT}"
|
2019-05-31 15:22:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-10-06 07:11:01 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-31 15:22:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2021-10-06 07:11:01 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-05-31 15:22:11 +08:00
|
|
|
)
|