diff options
| author | Carsten Neumann <cpneumann@ualr.edu> | 2018-12-17 09:52:25 -0600 |
|---|---|---|
| committer | Carsten Neumann <cpneumann@ualr.edu> | 2018-12-17 09:52:25 -0600 |
| commit | f64362201923a20111ced9b789286437a8acac13 (patch) | |
| tree | 2135c7c05c648442f67239daa7890177aa3d08fc /scripts | |
| parent | fcde2e64eb46295b64b3caa58d0d32eab0b6a49d (diff) | |
| download | vcpkg-f64362201923a20111ced9b789286437a8acac13.tar.gz vcpkg-f64362201923a20111ced9b789286437a8acac13.zip | |
Fix spdlog handling of external fmt lib
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
