Commit Graph

8 Commits (2f169568b7383cf91b91f1e221f22ce1f3b08815)

Author SHA1 Message Date
gabime 730aa35d98 Updated cmake 9 months ago
Gabi Melman 63535f140b
V2.x no std format (#3271)
* Removed SPDLOG_USE_STD_FORMAT

* Removed SPDLOG_USE_STD_FORMAT

* clang-format

* Fix windows.yml ci

* Fix ci
9 months ago
gabime 83d274eb55 Fix spdlogConfig.cmake.in 2 years ago
gabime 3834b911cd Fixed spdlogConfig.cmake.in fmt dep 2 years ago
gabime 15ee3f7999 Updated spdlogConfig.cmake 2 years ago
Adam Calhoon 69cac816aa When built with SPDLOG_FMT_EXTERNAL_HO consumers of the spdlog targets depend on fmt
The cmake/spdlogConfig.cmake.in file properly takes into account the fmt
package dependency when building with SPDLOG_FMT_EXTERNAL:BOOL=ON but
not when built with SPDLOG_FMT_EXTERNAL_HO:BOOL=ON.

Prior to these changes SPDLOG_FMT_EXTERNAL_HO:BOOL=ON results in
exported targets with INTERFACE_LINK_LIBRARIES that contain
fmt::fmt-header-only.

As such, the installed spdlogConfig.cmake file should attempt to find
that dependency for the consumer.
4 years ago
Dave Rigby 87095a9f1f Ensure exported package is relocatable
As per CMake's Importing and Exporting Guide[1],
configure_package_config_file() should be used for configuring the
package configuration file, not the regular configure_file() function.

This ensures that a spdlog package built on one system (with a given
directory tree) can be imported from a different system -
e.g. creating a pre-compiled spdlog package for use on different
systems.

[1]: https://cmake.org/cmake/help/git-stage/guide/importing-exporting/index.html#id8
4 years ago
gabime 87eb569929 More updates to CMake (version support , cmake.in) 6 years ago