Skip to content

Commit

Permalink
[fbthrift] Fix incorrect path in FBThriftConfig.cmake (#23686)
Browse files Browse the repository at this point in the history
* [fbthrift] Fix incorrect path in FBThriftConfig.cmake

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
  • Loading branch information
LilyWangLL and Lily Wang committed Mar 22, 2022
1 parent cec1fbe commit e4a0503
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ports/fbthrift/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 2 additions & 1 deletion ports/fbthrift/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@
},
"fbthrift": {
"baseline": "2022.01.31.00",
"port-version": 1
"port-version": 2
},
"fcl": {
"baseline": "0.7.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/f-/fbthrift.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e4a0503

Please sign in to comment.