diff options
Diffstat (limited to 'source/lib/proto')
| -rw-r--r-- | source/lib/proto/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | source/lib/proto/include/wanda/proto/message.hpp | 4 | ||||
| -rw-r--r-- | source/lib/proto/src/message.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/source/lib/proto/CMakeLists.txt b/source/lib/proto/CMakeLists.txt index 53aeb43..cc218ba 100644 --- a/source/lib/proto/CMakeLists.txt +++ b/source/lib/proto/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_path(GET CMAKE_CURRENT_SOURCE_DIR STEM LIB_NAME) file(GLOB_RECURSE LIB_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "**/*.hpp") file(GLOB_RECURSE LIB_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" CONFIGURE_DEPENDS "**/*.cpp") -find_package("fmt" REQUIRED) +find_package("spdlog") add_library("wanda-${LIB_NAME}" ${LIB_SOURCES} @@ -28,7 +28,7 @@ target_compile_features("wanda-${LIB_NAME}" PUBLIC ) target_link_libraries("wanda-${LIB_NAME}" PUBLIC - "fmt::fmt-header-only" + "spdlog::spdlog_header_only" ) install(TARGETS "wanda-${LIB_NAME}" diff --git a/source/lib/proto/include/wanda/proto/message.hpp b/source/lib/proto/include/wanda/proto/message.hpp index f4a6a3b..03a30c2 100644 --- a/source/lib/proto/include/wanda/proto/message.hpp +++ b/source/lib/proto/include/wanda/proto/message.hpp @@ -7,7 +7,7 @@ #ifndef WANDA_PROTO_MESSAGE_HPP #define WANDA_PROTO_MESSAGE_HPP -#include <fmt/core.h> +#include <spdlog/common.h> #include <cstddef> #include <istream> @@ -76,7 +76,7 @@ namespace wanda::proto } // namespace wanda::proto template<> -struct fmt::formatter<wanda::proto::message> : fmt::formatter<std::string> +struct spdlog::fmt_lib::formatter<wanda::proto::message> : spdlog::fmt_lib::formatter<std::string> { auto format(wanda::proto::message const & message, format_context & context) const -> decltype(context.out()); }; diff --git a/source/lib/proto/src/message.cpp b/source/lib/proto/src/message.cpp index dad3e86..f44ca06 100644 --- a/source/lib/proto/src/message.cpp +++ b/source/lib/proto/src/message.cpp @@ -1,6 +1,6 @@ #include "wanda/proto/message.hpp" -#include <fmt/format.h> +#include <spdlog/common.h> #include <ios> #include <iterator> @@ -76,7 +76,7 @@ namespace wanda::proto } // namespace wanda::proto -auto fmt::formatter<wanda::proto::message>::format(wanda::proto::message const & message, format_context & context) const -> decltype(context.out()) +auto spdlog::fmt_lib::formatter<wanda::proto::message>::format(wanda::proto::message const & message, format_context & context) const -> decltype(context.out()) { return formatter<std::string>::format(static_cast<std::string>(message), context); } |
