1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
diff --git a/debian/kineto-49e854d805d916b2031e337763928d2f8d2e1fbf/libkineto/CMakeLists.txt b/debian/kineto-49e854d805d916b2031e337763928d2f8d2e1fbf/libkineto/CMakeLists.txt
index 7d36ffb9..f534aebb 100644
--- a/debian/kineto-49e854d805d916b2031e337763928d2f8d2e1fbf/libkineto/CMakeLists.txt
+++ b/debian/kineto-49e854d805d916b2031e337763928d2f8d2e1fbf/libkineto/CMakeLists.txt
@@ -111,23 +111,7 @@ endif()
target_compile_options(kineto_base PRIVATE "${KINETO_COMPILE_OPTIONS}")
target_compile_options(kineto_api PRIVATE "${KINETO_COMPILE_OPTIONS}")
-if(NOT TARGET fmt)
- if(NOT FMT_SOURCE_DIR)
- set(FMT_SOURCE_DIR "${LIBKINETO_THIRDPARTY_DIR}/fmt"
- CACHE STRING "fmt source directory from submodules")
- endif()
-
- # Build FMT.
- # FMT and some other libraries use BUILD_SHARED_LIBS to control
- # the library type.
- # Save and restore the value after configuring FMT
- set(TEMP_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
- set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared libs" FORCE)
- set(FMT_LIBRARY_TYPE static CACHE STRING "Set lib type to static")
- add_subdirectory("${FMT_SOURCE_DIR}" "${LIBKINETO_BINARY_DIR}/fmt")
- set_property(TARGET fmt PROPERTY POSITION_INDEPENDENT_CODE ON)
- set(BUILD_SHARED_LIBS ${TEMP_BUILD_SHARED_LIBS} CACHE BOOL "Build shared libs" FORCE)
-endif()
+find_package(fmt REQUIRED)
|