Commit 3b732783 authored by Martin Vejdarski's avatar Martin Vejdarski

fix shared lib issues with bundled fmt

parent 0ca2cb62
......@@ -131,6 +131,9 @@ if (SPDLOG_BUILD_SHARED)
if(WIN32)
target_compile_options(spdlog PUBLIC /wd4251 /wd4275)
endif()
if(NOT SPDLOG_FMT_EXTERNAL AND NOT SPDLOG_FMT_EXTERNAL_HO)
target_compile_definitions(spdlog PRIVATE FMT_EXPORT PUBLIC FMT_SHARED)
endif()
else()
add_library(spdlog STATIC ${SPDLOG_SRCS} ${SPDLOG_ALL_HEADERS})
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment