From 0488b2b2d3f1fd251e29467d5954235be5b07dac Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Wed, 24 Mar 2021 10:07:18 +0000 Subject: [PATCH] Avoid multiply defined symbols linker errors When using spdlog_setup with a compiled spdlog library. Fixes https://github.com/guangie88/spdlog_setup/issues/74. --- include/spdlog_setup/details/conf_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog_setup/details/conf_impl.h b/include/spdlog_setup/details/conf_impl.h index 2f6da6d0..8f7b2b5c 100644 --- a/include/spdlog_setup/details/conf_impl.h +++ b/include/spdlog_setup/details/conf_impl.h @@ -6,7 +6,7 @@ #pragma once -#ifndef FMT_HEADER_ONLY +#if !defined(SPDLOG_COMPILED_LIB) && !defined(FMT_HEADER_ONLY) #define FMT_HEADER_ONLY #endif