[fbthrift] Fix incorrect path in FBThriftConfig.cmake (#23686)

* [fbthrift] Fix incorrect path in FBThriftConfig.cmake

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2022-03-21 19:39:28 -07:00 committed by GitHub
parent cec1fbea37
commit e4a05031c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 2 deletions

View File

@ -49,5 +49,14 @@ file(REMOVE_RECURSE
vcpkg_copy_tools(TOOL_NAMES thrift1 AUTO_CLEAN)
vcpkg_copy_pdbs()
if(EXISTS "${CURRENT_PACKAGES_DIR}/share/fbthrift/FBThriftConfig.cmake")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/fbthrift/FBThriftConfig.cmake"
"${PACKAGE_PREFIX_DIR}/lib/cmake/fbthrift" "${PACKAGE_PREFIX_DIR}/share/fbthrift")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/fbthrift/FBThriftConfig.cmake"
"${PACKAGE_PREFIX_DIR}/bin/thrift1.exe" "${PACKAGE_PREFIX_DIR}/tools/fbthrift/thrift1.exe")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/fbthrift/FBThriftConfig.cmake"
"${PACKAGE_PREFIX_DIR}/bin/thrift1" "${PACKAGE_PREFIX_DIR}/tools/fbthrift/thrift1")
endif()
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,9 +1,10 @@
{
"name": "fbthrift",
"version-string": "2022.01.31.00",
"port-version": 1,
"port-version": 2,
"description": "Facebook's branch of Apache Thrift, including a new C++ server.",
"homepage": "https://github.com/facebook/fbthrift",
"license": "Apache-2.0",
"supports": "x64 & static",
"dependencies": [
"boost-context",

View File

@ -2158,7 +2158,7 @@
},
"fbthrift": {
"baseline": "2022.01.31.00",
"port-version": 1
"port-version": 2
},
"fcl": {
"baseline": "0.7.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "228608a7708d80532948eec3a0987f2e85e4a43c",
"version-string": "2022.01.31.00",
"port-version": 2
},
{
"git-tree": "bf1148604c897c7727621feb13713eac7e782497",
"version-string": "2022.01.31.00",