mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
fix build error (#30949)
This commit is contained in:
parent
b925f3f8c4
commit
eb8e75bb4f
@ -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"
|
||||
)
|
||||
|
@ -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()
|
||||
@ -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)
|
||||
|
||||
|
@ -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",
|
||||
|
@ -7782,7 +7782,7 @@
|
||||
},
|
||||
"tensorpipe": {
|
||||
"baseline": "2022-03-16",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"termcolor": {
|
||||
"baseline": "2.1.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ea5e9e44827c85ad455621231cb7ca1f2447cdd9",
|
||||
"version-date": "2022-03-16",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "eed8e7f9952716b9aa7fcde453fad358b6b7bd2f",
|
||||
"version-date": "2022-03-16",
|
||||
|
Loading…
Reference in New Issue
Block a user