vcpkg/ports/mdns/portfile.cmake

21 lines
538 B
CMake
Raw Normal View History

2020-12-17 16:16:17 +08:00
#header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mjansson/mdns
2023-10-10 06:32:13 +08:00
REF "${VERSION}"
SHA512 0bbfeefdd3f324a8e5aa85227bfa45c2b5cd88c12a9f77df2a1c48cb2661ba8b283dd53541e39d20ed2705646dc8d8724a0287c58f9efa91d2b1b796a0ca9a7a
2020-12-17 16:16:17 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2020-12-17 16:16:17 +08:00
OPTIONS
-DMDNS_BUILD_EXAMPLE=OFF
)
vcpkg_cmake_install()
2020-12-17 16:16:17 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
2023-10-10 06:32:13 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")