Skip to content

Commit

Permalink
fix build error (#30949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adela0814 authored Apr 19, 2023
1 parent b925f3f commit eb8e75b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ports/tensorpipe/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/Tensorpipe" PACKAGE_NAME "Tensorpipe")

file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
12 changes: 9 additions & 3 deletions ports/tensorpipe/support-test.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/tensorpipe/test/CMakeLists.txt b/tensorpipe/test/CMakeLists.txt
index 53e8643..c49ada6 100644
index 53e8643..09baaa0 100644
--- a/tensorpipe/test/CMakeLists.txt
+++ b/tensorpipe/test/CMakeLists.txt
@@ -93,25 +93,24 @@ if(TP_USE_CUDA)
@@ -93,25 +93,30 @@ if(TP_USE_CUDA)
channel/cuda_ipc/cuda_ipc_test.cc
)
endif()
Expand All @@ -25,13 +25,19 @@ index 53e8643..c49ada6 100644
-add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/googletest
- ${PROJECT_BINARY_DIR}/third_party/googletest EXCLUDE_FROM_ALL)
+find_package(GTest CONFIG REQUIRED)
+
+if (TARGET uv)
+ set(LIBUV_LIBRARY uv)
+else()
+ set(LIBUV_LIBRARY uv_a)
+endif()

list(APPEND TP_TEST_LINK_LIBRARIES
tensorpipe
- uv::uv
- gmock
- gtest_main)
+ unofficial::libuv::libuv
+ ${LIBUV_LIBRARY}
+ GTest::gmock
+ GTest::gtest_main)

Expand Down
2 changes: 1 addition & 1 deletion ports/tensorpipe/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tensorpipe",
"version-date": "2022-03-16",
"port-version": 2,
"port-version": 3,
"description": "A tensor-aware point-to-point communication primitive for machine learning",
"homepage": "https://github.com/pytorch/tensorpipe",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7782,7 +7782,7 @@
},
"tensorpipe": {
"baseline": "2022-03-16",
"port-version": 2
"port-version": 3
},
"termcolor": {
"baseline": "2.1.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tensorpipe.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ea5e9e44827c85ad455621231cb7ca1f2447cdd9",
"version-date": "2022-03-16",
"port-version": 3
},
{
"git-tree": "eed8e7f9952716b9aa7fcde453fad358b6b7bd2f",
"version-date": "2022-03-16",
Expand Down

0 comments on commit eb8e75b

Please sign in to comment.