aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeneral Jack O'Neill <StarGate_One@outlook.com>2020-08-05 17:08:40 -0400
committerGitHub <noreply@github.com>2020-08-05 14:08:40 -0700
commit3ecb635ef13ddfeb158a9e5a03b330f06589a717 (patch)
tree90331c386dd82abb4a4a171b00abcbf56ffce900
parent1ed263bc5237599365b29537ec526e640ce56f5b (diff)
downloadvcpkg-3ecb635ef13ddfeb158a9e5a03b330f06589a717.tar.gz
vcpkg-3ecb635ef13ddfeb158a9e5a03b330f06589a717.zip
[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
-rw-r--r--ports/libusb/CONTROL3
-rw-r--r--ports/libusb/portfile.cmake4
2 files changed, 6 insertions, 1 deletions
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