[hidapi] Fix cmake error (#22320)

* [hidapi] Fix cmake error

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2022-01-05 11:56:55 +08:00 committed by GitHub
parent 00b791920a
commit f2fa2feb0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View File

@ -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")

View File

@ -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",

View File

@ -2694,7 +2694,7 @@
},
"hidapi": {
"baseline": "0.11.2",
"port-version": 0
"port-version": 1
},
"highfive": {
"baseline": "2.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "145fcc6e2c3aa564666793d494a6b90c1323e0ac",
"version-semver": "0.11.2",
"port-version": 1
},
{
"git-tree": "afa485fda08f51ccd3fbf54327ba44aa11b8cb32",
"version-semver": "0.11.2",