Makefile: generate util/build_version.cc from .in file (#1384)
* util/build_verion.cc.in: add this file, so cmake and make can share the template file for generating util/build_version.cc. * CMakeLists.txt: also, cmake v2.8.11 does not support file(GENERATE ...), so we are using configure_file() for creating build_version.cc. * Makefile: use util/build_verion.cc.in for creating build_version.cc. Signed-off-by: Kefu Chai <tchaikov@gmail.com>main
parent
9ee84067f6
commit
60a2bbba94
@ -0,0 +1,4 @@ |
|||||||
|
#include "build_version.h" |
||||||
|
const char* rocksdb_build_git_sha = "rocksdb_build_git_sha:@@GIT_SHA@@"; |
||||||
|
const char* rocksdb_build_git_date = "rocksdb_build_git_date:@@GIT_DATE_TIME@@"; |
||||||
|
const char* rocksdb_build_compile_date = __DATE__; |
Loading…
Reference in new issue