mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 13:39:01 +08:00
c76ec6f7f7
* [tensorpipe] create a new port * [tensorpipe] create patch for libuv * [libnop] create a new port * [libnop] update baseline and port SHA * [tensorpipe] fix header/target install * [tensorpipe] remove support of Windows/UWP * [tensorpipe] update baseline and port SHA * Update ports/tensorpipe/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/tensorpipe/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [tensorpipe] support 'test' feature for Linux * it will be helpful to check output binaries are valid * update code snapshot(2021/03/02) and port SHA * [tensorpipe] fix build failures in Linux * TC for 'ibv' failes * link with CMAKE_DL_LIBS for <dlfcn.h> * [tensorpipe] apply PR feedback * [tensorpipe] update version-date and patches * [tensorpipe] FATAL_ERROR if feature requires Linux * [tensorpipe] reduce features and code base * simplify features * fix `pybind11` build failures * updates source code base and CMake export file names * use GNUInstallDirs variable * [tensorpipe] update baseline * [tensorpipe] update support * use more correct "support" exporession * [tensorpipe] fix Linux/CUDA test options * [tensorpipe] fix corrupted patch * [tensorpipe] fix wrong support expression Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
diff --git a/tensorpipe/test/CMakeLists.txt b/tensorpipe/test/CMakeLists.txt
|
|
index c0320aa..1414bdd 100644
|
|
--- a/tensorpipe/test/CMakeLists.txt
|
|
+++ b/tensorpipe/test/CMakeLists.txt
|
|
@@ -86,11 +86,8 @@ if(TP_USE_CUDA)
|
|
endif()
|
|
|
|
|
|
-add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/googletest
|
|
- ${PROJECT_BINARY_DIR}/third_party/googletest)
|
|
+find_package(GTest CONFIG REQUIRED)
|
|
|
|
target_link_libraries(tensorpipe_test PRIVATE
|
|
tensorpipe
|
|
- uv::uv
|
|
- gmock
|
|
- gtest_main)
|
|
+ unofficial::libuv::libuv GTest::gmock GTest::gtest_main)
|
|
|
|
diff --git a/tensorpipe/test/CMakeLists.txt b/tensorpipe/test/CMakeLists.txt
|
|
index fecc731..031e40d 100644
|
|
--- a/tensorpipe/test/CMakeLists.txt
|
|
+++ b/tensorpipe/test/CMakeLists.txt
|
|
@@ -80,10 +80,11 @@ if(TP_USE_CUDA)
|
|
channel/cuda_ipc/cuda_ipc_test.cc
|
|
)
|
|
endif()
|
|
-
|
|
- target_sources(tensorpipe_test PRIVATE
|
|
- channel/cuda_gdr/cuda_gdr_test.cc
|
|
- )
|
|
+ if(TP_ENABLE_CUDA_GDR)
|
|
+ target_sources(tensorpipe_test PRIVATE
|
|
+ channel/cuda_gdr/cuda_gdr_test.cc
|
|
+ )
|
|
+ endif()
|
|
endif()
|
|
|
|
|