vcpkg/ports/yalantinglibs/portfile.cmake
2024-12-20 14:19:42 -06:00

29 lines
791 B
CMake

set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alibaba/yalantinglibs
REF "${VERSION}"
SHA512 357b6789fe32ad4ca89933ba94d7f92ef65bc52497a918d76d7a3b5cc70b3f63efb26306de3783f6450d2d61e0ff2da6a23278a2d9862a2eec6287ca21396c23
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_BENCHMARK=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_UNIT_TESTS=OFF
-DINSTALL_THIRDPARTY=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/yalantinglibs")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")