From f2fa2feb0c75d6676973da3da228d2e5714ddc2c Mon Sep 17 00:00:00 2001 From: LilyWangLL <94091114+LilyWangLL@users.noreply.github.com> Date: Wed, 5 Jan 2022 11:56:55 +0800 Subject: [PATCH] [hidapi] Fix cmake error (#22320) * [hidapi] Fix cmake error * update version Co-authored-by: Lily Wang --- ports/hidapi/portfile.cmake | 2 ++ ports/hidapi/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/h-/hidapi.json | 5 +++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ports/hidapi/portfile.cmake b/ports/hidapi/portfile.cmake index ba06d124d82..57dfd339bf3 100644 --- a/ports/hidapi/portfile.cmake +++ b/ports/hidapi/portfile.cmake @@ -16,6 +16,8 @@ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() +vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/hidapi/hidapi.cmake" "\"/hidapi\"" "\"\${_IMPORT_PREFIX}/include\"") + file(INSTALL "${SOURCE_PATH}/LICENSE-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") diff --git a/ports/hidapi/vcpkg.json b/ports/hidapi/vcpkg.json index b044d985dad..673384492db 100644 --- a/ports/hidapi/vcpkg.json +++ b/ports/hidapi/vcpkg.json @@ -1,6 +1,7 @@ { "name": "hidapi", "version-semver": "0.11.2", + "port-version": 1, "description": "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows.", "homepage": "https://github.com/libusb/hidapi", "license": "BSD-3-Clause-Clear", diff --git a/versions/baseline.json b/versions/baseline.json index f8d70ff9523..d09e44c55eb 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2694,7 +2694,7 @@ }, "hidapi": { "baseline": "0.11.2", - "port-version": 0 + "port-version": 1 }, "highfive": { "baseline": "2.3", diff --git a/versions/h-/hidapi.json b/versions/h-/hidapi.json index b119c44d130..51df67bed98 100644 --- a/versions/h-/hidapi.json +++ b/versions/h-/hidapi.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "145fcc6e2c3aa564666793d494a6b90c1323e0ac", + "version-semver": "0.11.2", + "port-version": 1 + }, { "git-tree": "afa485fda08f51ccd3fbf54327ba44aa11b8cb32", "version-semver": "0.11.2",