Update README.md

This commit is contained in:
Gabi Melman 2019-05-29 00:51:30 +03:00 committed by GitHub
parent a48fe674ee
commit 9562ce3b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ spdlog now supports compiling as a static lib for much faster compile times.
* Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build. * Copy and add [src/spdlog.cpp](https://github.com/gabime/spdlog/tree/v1.x/src/spdlog.cpp) to your build.
* Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker) * Pass the `-DSPDLOG_COMPILED_LIB` to the compiler (and -lspdlog to the linker)
Or use CMake: or use CMake:
* Build `libspdlog.a`: ```cmake ..``` * Build `libspdlog.a`: ```cmake ..```
* Use it ```target_link_libraries(example spdlog::spdlog)``` * Use it ```target_link_libraries(example spdlog::spdlog)```
* see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt) * see [example](https://github.com/gabime/spdlog/tree/v1.x/include/spdlog/example/CMakeLists.txt)