2020-05-22 02:31:33 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO rvarago/absent
|
2020-06-24 04:00:49 +08:00
|
|
|
REF 0.3.1
|
|
|
|
SHA512 c7b7d29422ef8afc48e3093496e1dd055cfe9969ae037c2b06ea70fe4283e7a7e9129171efaa257e909c535e24df5861b992b24b00ec03f965730e6a22e13015
|
2020-05-22 02:31:33 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-05-22 02:31:33 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-05-22 02:31:33 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
2020-05-22 02:31:33 +08:00
|
|
|
CONFIG_PATH lib/cmake/${PORT}
|
|
|
|
)
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-07 07:44:04 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
2020-05-22 02:31:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2023-03-07 07:44:04 +08:00
|
|
|
"${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
2020-05-22 02:31:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(INSTALL
|
2023-03-07 07:44:04 +08:00
|
|
|
"${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
2020-05-22 02:31:33 +08:00
|
|
|
)
|
|
|
|
|