vcpkg_download_distfile(ARCHIVE URLS "https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz" "https://www.mirrorservice.org/sites/ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-${VERSION}.tar.xz" FILENAME "libcap-${VERSION}.tar.xz" SHA512 8ab72cf39bf029656b2a4a5972a0da4ab4b46a3d8a8da66d6cde925e06fe34df2fa5fc4d0b62c9cec4972b0b2678fdac6ef9421b6fb83c2a5bf869cf8d5fdb16 ) vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}" ) file(COPY "${CMAKE_CURRENT_LIST_DIR}/configure" DESTINATION "${SOURCE_PATH}") if(VCPKG_CROSSCOMPILING) file(TOUCH "${SOURCE_PATH}/libcap/_makenames") file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.list.h" DESTINATION "${SOURCE_PATH}/libcap/") file(COPY "${CURRENT_HOST_INSTALLED_DIR}/include/sys/libcap-private/cap_names.h" DESTINATION "${SOURCE_PATH}/libcap/") file(TOUCH "${SOURCE_PATH}/libcap/cap_names.h") endif() block(SCOPE_FOR VARIABLES) set(VCPKG_CMAKE_CONFIGURE_OPTIONS "-DVCPKG_VARS_TO_CHECK=CMAKE_OBJCOPY") vcpkg_cmake_get_vars(cmake_vars_file) include("${cmake_vars_file}") set(ENV{OBJCOPY} "${VCPKG_DETECTED_CMAKE_OBJCOPY}") endblock() vcpkg_configure_make( SOURCE_PATH "${SOURCE_PATH}" COPY_SOURCE DETERMINE_BUILD_TRIPLET ) vcpkg_install_make( MAKEFILE "Makefile.vcpkg" ) vcpkg_fixup_pkgconfig() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License")