mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 10:49:06 +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>
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
diff --git a/tensorpipe/python/CMakeLists.txt b/tensorpipe/python/CMakeLists.txt
|
|
index 41958dd..02562b4 100644
|
|
--- a/tensorpipe/python/CMakeLists.txt
|
|
+++ b/tensorpipe/python/CMakeLists.txt
|
|
@@ -4,13 +4,17 @@
|
|
# This source code is licensed under the BSD-style license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
-if(NOT (COMMAND pybind11_add_module))
|
|
- add_subdirectory(
|
|
- ${PROJECT_SOURCE_DIR}/third_party/pybind11
|
|
- ${PROJECT_BINARY_DIR}/third_party/pybind11
|
|
- EXCLUDE_FROM_ALL)
|
|
-endif()
|
|
+find_package(pybind11 CONFIG REQUIRED)
|
|
|
|
-set(PYBIND11_CPP_STANDARD -std=c++14)
|
|
pybind11_add_module(pytensorpipe tensorpipe.cc)
|
|
-target_link_libraries(pytensorpipe PRIVATE tensorpipe)
|
|
+set_target_properties(pytensorpipe
|
|
+PROPERTIES
|
|
+ CXX_STANDARD 14
|
|
+)
|
|
+target_link_libraries(pytensorpipe PRIVATE tensorpipe pybind11::module)
|
|
+
|
|
+install(TARGETS pytensorpipe
|
|
+ EXPORT tensorpipeTargets
|
|
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|