2020-12-17 16:16:17 +08:00
|
|
|
#header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mjansson/mdns
|
2022-05-03 11:43:36 +08:00
|
|
|
REF 1.4.2
|
|
|
|
SHA512 fa3fcf130721ee6f7012225c1e7952bd41703c2488b1d0ffe2b8c73ed06744d1cd9f03b6ab19aa0b8074fbfaafe46f8e102d6a648756725a60dc076e896cfbf6
|
2020-12-17 16:16:17 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-11-16 06:55:11 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-17 16:16:17 +08:00
|
|
|
OPTIONS
|
|
|
|
-DMDNS_BUILD_EXAMPLE=OFF
|
|
|
|
)
|
|
|
|
|
2021-11-16 06:55:11 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-12-17 16:16:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2021-11-16 06:55:11 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|