aboutsummaryrefslogtreecommitdiff
path: root/ports/libusb
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libusb')
-rw-r--r--ports/libusb/portfile.cmake2
-rw-r--r--ports/libusb/vcpkg-cmake-wrapper.cmake4
-rw-r--r--ports/libusb/vcpkg.json2
3 files changed, 6 insertions, 2 deletions
diff --git a/ports/libusb/portfile.cmake b/ports/libusb/portfile.cmake
index 153dedf13..3aed72d2a 100644
--- a/ports/libusb/portfile.cmake
+++ b/ports/libusb/portfile.cmake
@@ -58,5 +58,5 @@ else()
endif()
configure_file(${CURRENT_PORT_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY)
-file(INSTALL ${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+configure_file(${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY)
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libusb/vcpkg-cmake-wrapper.cmake b/ports/libusb/vcpkg-cmake-wrapper.cmake
index 8f0f35811..61f9d54ba 100644
--- a/ports/libusb/vcpkg-cmake-wrapper.cmake
+++ b/ports/libusb/vcpkg-cmake-wrapper.cmake
@@ -8,3 +8,7 @@ select_library_configurations(LIBUSB)
set(LIBUSB_INCLUDE_DIRS ${LIBUSB_INCLUDE_DIR})
set(LIBUSB_LIBRARIES ${LIBUSB_LIBRARY})
+
+if (@VCPKG_TARGET_IS_LINUX@)
+ list(APPEND LIBUSB_LIBRARIES udev)
+endif()
diff --git a/ports/libusb/vcpkg.json b/ports/libusb/vcpkg.json
index 5649425e8..07bbd2d8b 100644
--- a/ports/libusb/vcpkg.json
+++ b/ports/libusb/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "libusb",
"version": "1.0.24",
- "port-version": 4,
+ "port-version": 5,
"description": "a cross-platform library to access USB devices",
"homepage": "https://github.com/libusb/libusb",
"supports": "!uwp"