vcpkg/ports/kubernetes/portfile.cmake
Ahmed Yarub Hani Al Nuaimi 65f712f173
[kubernetes] update to latest commit (#21647)
* Update Kubernetes Client Library

* Update versions

Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com>
2021-11-26 01:07:05 -08:00

27 lines
789 B
CMake

vcpkg_fail_port_install(ON_TARGET "UWP")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO kubernetes-client/c
REF a019822652b57781647d4d262870fa38ef531ad9
SHA512 7547bade6878dd6402f760fb49248cb1dd031be11dda31c3758324cf833ca184efb127c637d28cb5c59cc172dcb211a49e5fa60f459c396fea2fcd781c1260a1
HEAD_REF master
PATCHES
001-fix-destination.patch
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}/kubernetes
)
vcpkg_cmake_install()
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
endif()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_copy_pdbs()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)