2019-05-31 04:52:06 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/ring-span-lite
|
2021-09-28 12:02:22 +08:00
|
|
|
REF v0.6.0
|
|
|
|
SHA512 1C3C9560BC1F8CBDF9CDFD5593233020D8403CE707D8B129FED82080CB806E82E83CBB839BEA64D53B022A58400F817A54FFB30099A0D7D7B300E8D0103F483B
|
2019-05-31 04:52:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2021-09-28 12:02:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-31 04:52:06 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DRING_SPAN_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DRING_SPAN_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(
|
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
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2021-09-28 12:02:22 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-05-31 04:52:06 +08:00
|
|
|
)
|