Merge pull request #3848 from blattms/binary-package-version-no-buildtime

Use empty string for buildtime if BUILD_TIMESTAMP is not set.
This commit is contained in:
Markus Blatt 2022-04-05 14:54:58 +02:00 committed by GitHub
commit 282951dc44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,11 @@ namespace Opm
/// the binary was compiled.
std::string compileTimestamp()
{
#ifdef BUILD_TIMESTAMP
return BUILD_TIMESTAMP;
#else
return "";
#endif
}
} // namespace Opm