sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.6k stars 347 forks source link

version info at compile #547

Closed phdpsx closed 6 months ago

phdpsx commented 7 months ago

Is there a way to get redis++ version at the compile time (define)? Didn't find anything in headers...

sewenew commented 7 months ago

You can get the version information from CMakeLists.txt.

Regards

phdpsx commented 7 months ago

I did notice it in CMake files. I'm interested in compile/run time version, after library install when I only have lib(s) and headers. I need it to track versions between different binaries we make.

sewenew commented 7 months ago

I'll add a version file in the next release. Thanks for your suggestion!

Regards

sewenew commented 6 months ago

Version info has been added to src/sw/redis++/version.h file.

Regards