• Carsten Neumann's avatar
    Fix handling of external fmt lib · 084bc72d
    Carsten Neumann authored
    Using an external fmt lib should cause the spdlog::spdlog target to have
    a dependency on fmt lib - so that a consuming project does not need
    to call find_package(fmt) and target_link_libraries(... fmt::fmt).
    
    To this end a new cmake option SPDLOG_FMT_EXTERNAL is introduced which
    makes spdlog depend on fmt lib and defines the SPDLOG_FMT_EXTERNAL macro
    to avoid using the bundled fmt lib. The value of SPDLOG_FMT_EXTERNAL is
    also stored in the installed spdlogConfig.cmake and if it is ON
    find_dependency() is used to ensure the fmt::fmt target is imported.
    084bc72d
Name
Last commit
Last update
bench Loading commit data...
cmake Loading commit data...
example Loading commit data...
include/spdlog Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
appveyor.yml Loading commit data...
clang_tidy.sh Loading commit data...
format.sh Loading commit data...