[libtorch] Fix libtorch build (#29497)

* [libtorch] fixed libtorch build

* fix libtorch build

---------

Co-authored-by: jimwang118 <wangzhijie05@byondsoft.com>
This commit is contained in:
jim wang 2023-02-08 22:32:21 +00:00 committed by GitHub
parent 29f2f939a4
commit 2196a2c7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 2 deletions

View File

@ -160,7 +160,7 @@ endif()
if(USE_ZSTD)
find_package(zstd CONFIG REQUIRED) # zstd::libzstd_static
list(APPEND Caffe2_DEPENDENCY_LIBS zstd::libzstd_static)
list(APPEND Caffe2_DEPENDENCY_LIBS $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
endif()
if(USE_SYSTEM_ONNX)

View File

@ -1,6 +1,7 @@
{
"name": "libtorch",
"version": "1.12.1",
"port-version": 1,
"description": "Tensors and Dynamic neural networks in Python with strong GPU acceleration",
"homepage": "https://pytorch.org/",
"license": null,

View File

@ -4434,7 +4434,7 @@
},
"libtorch": {
"baseline": "1.12.1",
"port-version": 0
"port-version": 1
},
"libtorrent": {
"baseline": "2.0.8",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "99e1c00f462716fc1899f7c0f5773e5dccbe8ee8",
"version": "1.12.1",
"port-version": 1
},
{
"git-tree": "c9504da41dc33e2294aeda9e3c215c505f1627d0",
"version": "1.12.1",