New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cmake TIMESTAMP function #2848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect!
CMakeLists.txt
Outdated
| string(REGEX REPLACE "\n" "" DATETIME ${DATETIME}) | ||
| set(GIT_DATE_TIME "${DATETIME}") | ||
| endif() | ||
| string(TIMESTAMP ${GIT_DATE_TIME} "%Y/%m/%d %H:%M:%S" UTC) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to update cmake_minimum_required to use TIMESTAMP.
|
@bmwiedemann updated the pull request - view changes |
|
LGTM |
because it is not only platform independent but also allows to override the build date to make ceph builds reproducible Requires cmake-2.8.11+ from 2013
|
@bmwiedemann updated the pull request - view changes |
|
Merging. |
|
@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: because it is not only platform independent but also allows to override the build date This helps to make ceph builds reproducible (that includes a fork of rockdb in a submodule) Also adds UTC flag, to be independent of timezone. Requires cmake-2.8.11+ from 2013 Closes facebook#2848 Differential Revision: D5820189 Pulled By: yiwu-arbug fbshipit-source-id: e3e8c1550e10e238c173f6c5d9ba15f71ad3ce28
because it is not only platform independent
but also allows to override the build date
This helps to make ceph builds reproducible (that includes a fork of rockdb in a submodule)
Also adds UTC flag, to be independent of timezone.
Requires cmake-2.8.11+ from 2013