2019-05-28 16:49:40 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO martinmoene/optional-lite
|
2024-03-12 04:07:13 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 6ec7dbd11947376cc46502cdab866e171fca7123b317887889022d22b003e4fd96d26816046e8e24b1b83fb5190ae6232cbbacfcb20fcb78200878bd73d7adc4
|
2019-05-28 16:49:40 +08:00
|
|
|
)
|
|
|
|
|
2021-10-12 11:14:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-05-28 16:49:40 +08:00
|
|
|
OPTIONS
|
|
|
|
-DOPTIONAL_LITE_OPT_BUILD_TESTS=OFF
|
|
|
|
-DOPTIONAL_LITE_OPT_BUILD_EXAMPLES=OFF
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:14:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-05-28 16:49:40 +08:00
|
|
|
|
2021-10-12 11:14:35 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
CONFIG_PATH "lib/cmake/${PORT}"
|
2019-05-28 16:49:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2021-10-12 11:14:35 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2019-05-28 16:49:40 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2021-10-12 11:14:35 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2019-05-28 16:49:40 +08:00
|
|
|
)
|