Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit f5618aa

Browse files
mciprian13facebook-github-bot
authored andcommitted
Change build date to git date (#5949)
Summary: **Summary** Replace in the version string the build date with the date of the last git commit. The version should depend on the commits and not on the build date (building same code but on different dates should provide the same version string). Pull Request resolved: #5949 Reviewed By: siyan-lin Differential Revision: D36259342 Pulled By: khabinov fbshipit-source-id: 50d1177e63b3041c176dfa117c0b3c292323e94e
1 parent 21fde40 commit f5618aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ add_definitions("-DGIT_TAG=\"${GIT_TAG}\"")
110110
# Compile definition for Glow build date in Y-M-D format.
111111
string(TIMESTAMP GLOW_BUILD_DATE "%Y-%m-%d")
112112
add_definitions("-DGLOW_BUILD_DATE=\"${GLOW_BUILD_DATE}\"")
113-
add_definitions("-DGLOW_VERSION=\"${GLOW_BUILD_DATE} (${GIT_SHA1}) (${GIT_TAG})\"")
113+
add_definitions("-DGLOW_VERSION=\"${GIT_DATE} (${GIT_SHA1}) (${GIT_TAG})\"")
114114

115115
if(GLOW_USE_PNG_IF_REQUIRED)
116116
find_package(PNG)

0 commit comments

Comments
 (0)