gentoo-ebuilds/sci-ml/caffe2/files/caffe2-2.5.1-unbundle_fmt.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

10 lines
499 B
Diff

--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -1522,7 +1522,6 @@
# CMAKE_CXX_FLAGS in ways that break feature checks. Since we already know
# `fmt` is compatible with a superset of the compilers that PyTorch is, it
# shouldn't be too bad to just disable the checks.
-set_target_properties(fmt-header-only PROPERTIES INTERFACE_COMPILE_FEATURES "")
list(APPEND Caffe2_DEPENDENCY_LIBS fmt)
set(BUILD_SHARED_LIBS ${TEMP_BUILD_SHARED_LIBS} CACHE BOOL "Build shared libs" FORCE)