Allow user to choose between static or shared library

This commit is contained in:
David Zemon
2019-05-17 23:09:22 -05:00
parent dbcbeb7a57
commit 8dd85285e7
7 changed files with 27 additions and 28 deletions

View File

@@ -19,7 +19,7 @@
#include <locale>
#endif
#ifdef SPDLOG_STATIC_LIB
#ifdef SPDLOG_COMPILED_LIB
#undef SPDLOG_HEADER_ONLY
#define SPDLOG_INLINE
#else
@@ -216,4 +216,4 @@ std::unique_ptr<T> make_unique(Args &&... args)
#ifdef SPDLOG_HEADER_ONLY
#include "common-inl.h"
#endif
#endif

View File

@@ -37,6 +37,6 @@ protected:
} // namespace sinks
} // namespace spdlog
#ifndef SPDLOG_STATIC_LIB
#ifndef SPDLOG_COMPILED_LIB
#include "base_sink-inl.h"
#endif
#endif