mirror of https://github.com/gabime/spdlog.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
5 years ago | |
---|---|---|
.. | ||
.bazelversion | 5 years ago | |
BUILD.bazel | 5 years ago | |
README.md | 5 years ago | |
WORKSPACE.bazel | 5 years ago | |
main.cpp | 5 years ago | |
spdlog.BUILD | 5 years ago |
README.md
How to use spdlog with Bazel?
-
Add to your
WORKSPACE
file this:http_archive( name = "spdlog", build_file = "//:spdlog.BUILD", sha256 = "f0114a4d3c88be9e696762f37a7c379619443ce9d668546c61b21d41affe5b62", strip_prefix = "spdlog-1.7.0", urls = ["https://github.com/gabime/spdlog/archive/v1.7.0.tar.gz"], )
-
Copy
spdlog.BUILD
to your workspace directry.
Note: If you make use of the FMT library already in your project you can use that one also for spdlog: Remove the comments in the spdlog.BUILD
file.
Example
This directory contains WORKSPACE.bazel
file that how to integrate spdlog
into your Bazel project.
To test it run:
bazel run //:HelloWorld