Use fmt src file instead of inline in static lib build

This commit is contained in:
gabime
2019-05-11 01:33:48 +03:00
parent 2b90ab496a
commit 17bec5c3ce
2 changed files with 62 additions and 1 deletions

View File

@@ -11,15 +11,17 @@
//
#if !defined(SPDLOG_FMT_EXTERNAL)
#ifndef SPDLOG_STATIC_LIB
#ifndef FMT_HEADER_ONLY
#define FMT_HEADER_ONLY
#endif
#endif
#ifndef FMT_USE_WINDOWS_H
#define FMT_USE_WINDOWS_H 0
#endif
#include "bundled/core.h"
#include "bundled/format.h"
#else // external fmtlib
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
#include <fmt/core.h>
#include <fmt/format.h>
#endif