gentoo-ebuilds/sci-ml/caffe2/files/caffe2-2.4.0-cpp-httplib.patch
Alfredo Tupone 6d588efc14
*/*: mv sci-libs/caffe2 to sci-ml/
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-03-14 22:36:45 +01:00

13 lines
414 B
Diff

--- a/torch/lib/libshm/CMakeLists.txt 2024-09-04 06:09:51.943752841 +0200
+++ b/torch/lib/libshm/CMakeLists.txt 2024-09-04 06:10:52.243821438 +0200
@@ -24,6 +24,10 @@
CXX_STANDARD 17)
target_link_libraries(shm PRIVATE ${TORCH_CPU_LIB})
+if (USE_DISTRIBUTED)
+ target_link_libraries(shm PRIVATE cpp-httplib)
+endif()
+
if(UNIX AND NOT APPLE)
include(CheckLibraryExists)
find_package(Threads REQUIRED)