From 3ecb635ef13ddfeb158a9e5a03b330f06589a717 Mon Sep 17 00:00:00 2001 From: General Jack O'Neill Date: Wed, 5 Aug 2020 17:08:40 -0400 Subject: [libusb] build fails on windows due to symlink in extracted archive (#12656) * Update CONTROL * Change CONTROL file to use new Version and Port-Version setup * Increment Port-Version from 1 to 2 * Update portfile.cmake * Remove the README file after the file extract process from archive * The README file is a symlink to README.md but symlinks cause issues with MSBUILD on windows * Update portfile.cmake --- ports/libusb/CONTROL | 3 ++- ports/libusb/portfile.cmake | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ports/libusb/CONTROL b/ports/libusb/CONTROL index 863b2d08b..accbf3d0e 100644 --- a/ports/libusb/CONTROL +++ b/ports/libusb/CONTROL @@ -1,5 +1,6 @@ Source: libusb -Version: 1.0.23-1 +Version: 1.0.23 +Port-Version: 2 Homepage: https://github.com/libusb/libusb Description: a cross-platform library to access USB devices Supports: !uwp diff --git a/ports/libusb/portfile.cmake b/ports/libusb/portfile.cmake index 00bdbae79..74a592f41 100644 --- a/ports/libusb/portfile.cmake +++ b/ports/libusb/portfile.cmake @@ -39,6 +39,10 @@ if(VCPKG_TARGET_IS_WINDOWS) endif() endif() + # The README file in the archive is a symlink to README.md + # which causes issues with the windows MSBUILD process + file(REMOVE ${SOURCE_PATH}/README) + vcpkg_install_msbuild( SOURCE_PATH ${SOURCE_PATH} PROJECT_SUBPATH msvc/libusb_${LIBUSB_PROJECT_TYPE}_${MSVS_VERSION}.vcxproj -- cgit v1.2.3