From 65ee67539d83c14cea6a1a15f2048dbd6f77ba87 Mon Sep 17 00:00:00 2001 From: halx99 Date: Tue, 11 Jan 2022 18:04:50 +0800 Subject: [PATCH] Revert unnecessary changes [skip ci] --- thirdparty/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index e63de71357..655eb63d83 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -66,10 +66,8 @@ endif() add_library(thirdparty STATIC empty.cpp) # header only libs -target_compile_definitions(thirdparty INTERFACE FMT_HEADER_ONLY=1) target_include_directories(thirdparty - INTERFACE "fmt/include" - INTERFACE "robin-map/include" + INTERFACE "robin-map/include" ) if (ANDROID) @@ -338,6 +336,11 @@ if(BUILD_DEP_KCP) target_compile_definitions(thirdparty PUBLIC YASIO_HAVE_KCP=1) endif() +# fmt-lib +add_subdirectory(fmt) +target_link_libraries(thirdparty fmt-header-only) +configure_target_outdir(fmt) + # put "thirdparty" into thirdparty folder, too configure_target_outdir(thirdparty)