From ca9c8ae5fb95dfcba20bd79525f603ea37def172 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 12 May 2019 01:01:37 +0300 Subject: [PATCH] Warn if compiling spdlog.cpp under header only configuration --- src/spdlog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/spdlog.cpp b/src/spdlog.cpp index 57a70067..5ec66b81 100644 --- a/src/spdlog.cpp +++ b/src/spdlog.cpp @@ -1,10 +1,14 @@ // Copyright(c) 2015-present Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) +#ifndef SPDLOG_STATIC_LIB +#warning spdlog is in header only configuration. please define SPDLOG_STATIC_LIB +#endif #include #include #include "spdlog/common.h" + #include "spdlog/common-inl.h" #include "spdlog/details/null_mutex.h"