From f18e1fccfd3927878854d3d952e56f4ea539dc26 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 21 Dec 2019 17:49:34 +0200 Subject: [PATCH] cfg.cpp --- CMakeLists.txt | 3 ++- meson.build | 3 ++- src/cfg.cpp | 9 +++++++++ src/spdlog.cpp | 1 - 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/cfg.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 508a0b65..fd37612b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,7 +102,8 @@ set(SPDLOG_SRCS src/stdout_sinks.cpp src/color_sinks.cpp src/file_sinks.cpp - src/async.cpp) + src/async.cpp + src/cfg.cpp) if(NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO) diff --git a/meson.build b/meson.build index 1ab1e0a7..62a3d96f 100644 --- a/meson.build +++ b/meson.build @@ -82,7 +82,8 @@ spdlog_srcs = files([ 'src/color_sinks.cpp', 'src/file_sinks.cpp', 'src/spdlog.cpp', - 'src/stdout_sinks.cpp' + 'src/stdout_sinks.cpp', + 'src/cfg.cpp' ]) if not get_option('external_fmt') diff --git a/src/cfg.cpp b/src/cfg.cpp new file mode 100644 index 00000000..1f4a4c7f --- /dev/null +++ b/src/cfg.cpp @@ -0,0 +1,9 @@ +// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. +// Distributed under the MIT License (http://opensource.org/licenses/MIT) + +#ifndef SPDLOG_COMPILED_LIB +#error Please define SPDLOG_COMPILED_LIB to compile this file. +#endif + +#include "spdlog/cfg/helpers-inl.h" + diff --git a/src/spdlog.cpp b/src/spdlog.cpp index bd47ea8c..ec183c95 100644 --- a/src/spdlog.cpp +++ b/src/spdlog.cpp @@ -17,7 +17,6 @@ #include "spdlog/sinks/sink-inl.h" #include "spdlog/sinks/base_sink-inl.h" #include "spdlog/details/null_mutex.h" -#include "spdlog/cfg/helpers-inl.h" #include