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