2019-05-31 04:52:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/ring-span-lite
|
2024-06-19 02:58:37 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 aa3f199e4cef36ead644d9620e716c2f91bbb52fe3193919ed6aec099bc32841168eaf789c8ddc6700688a34335ad04e139822633d7e26184f511431ca4aaa12
|
2019-05-31 04:52:06 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-28 12:02:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-31 04:52:06 +08:00
|
|
|
OPTIONS
|
|
|
|
-DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DRING_SPAN_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-31 04:52:06 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
2021-09-28 12:02:22 +08:00
|
|
|
CONFIG_PATH "lib/cmake/${PORT}"
|
2019-05-31 04:52:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-09-28 12:02:22 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-31 04:52:06 +08:00
|
|
|
)
|
|
|
|
|
2024-06-19 02:58:37 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|