mirror of https://github.com/google/benchmark.git
allow BENCHMARK_VERSION to be undefined (#1769)
This commit is contained in:
parent
06b4a07015
commit
d5c55e8c42
|
@ -757,7 +757,13 @@ int InitializeStreams() {
|
||||||
|
|
||||||
} // end namespace internal
|
} // end namespace internal
|
||||||
|
|
||||||
std::string GetBenchmarkVersion() { return {BENCHMARK_VERSION}; }
|
std::string GetBenchmarkVersion() {
|
||||||
|
#ifdef BENCHMARK_VERSION
|
||||||
|
return {BENCHMARK_VERSION};
|
||||||
|
#else
|
||||||
|
return {""};
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void PrintDefaultHelp() {
|
void PrintDefaultHelp() {
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
|
|
Loading…
Reference in New Issue