Add build date and time to build_flags
Also fixes the Boost lib version.
This commit is contained in:
parent
cfbd04ae78
commit
54a12483e4
|
@ -33,6 +33,9 @@
|
||||||
#define C_VERSION_MINOR 0
|
#define C_VERSION_MINOR 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char* kDate = __DATE__;
|
||||||
|
const char* kTime = __TIME__;
|
||||||
|
|
||||||
// FDB info.
|
// FDB info.
|
||||||
const std::string kGitHash = "@CURRENT_GIT_VERSION_WNL@";
|
const std::string kGitHash = "@CURRENT_GIT_VERSION_WNL@";
|
||||||
const std::string kFdbVersion = "@FDB_VERSION@";
|
const std::string kFdbVersion = "@FDB_VERSION@";
|
||||||
|
@ -43,7 +46,7 @@ const std::string kArch = "@CMAKE_SYSTEM@";
|
||||||
const std::string kCompiler = "@CMAKE_CXX_COMPILER_ID@";
|
const std::string kCompiler = "@CMAKE_CXX_COMPILER_ID@";
|
||||||
|
|
||||||
// Library versions.
|
// Library versions.
|
||||||
const std::string kBoostVersion = "@Boost_LIB_VERSION@";
|
const std::string kBoostVersion = BOOST_LIB_VERSION;
|
||||||
|
|
||||||
// Build info and flags.
|
// Build info and flags.
|
||||||
const std::string kCMakeVersion = "@CMAKE_VERSION@";
|
const std::string kCMakeVersion = "@CMAKE_VERSION@";
|
||||||
|
@ -61,6 +64,9 @@ std::string jsonBuildInformation() {
|
||||||
json_spirit::mValue json;
|
json_spirit::mValue json;
|
||||||
JSONDoc doc(json);
|
JSONDoc doc(json);
|
||||||
|
|
||||||
|
doc.create("build_date") = kDate;
|
||||||
|
doc.create("build_time") = kTime;
|
||||||
|
|
||||||
doc.create("git_hash") = kGitHash;
|
doc.create("git_hash") = kGitHash;
|
||||||
doc.create("fdb_version") = kFdbVersion;
|
doc.create("fdb_version") = kFdbVersion;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue