aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/scripts
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-08-23 22:45:08 +0800
committerchriseth <c@ethdev.com>2016-08-26 16:14:44 +0800
commit4588eda622c9ef2cb62252ec12ea7bb9ae057bd1 (patch)
treebb88177ba342758d775703afd0fe9a1ab8de1921 /cmake/scripts
parent54ab787b83275fd374b3951ec3efa577c954bd1a (diff)
downloaddexon-solidity-4588eda622c9ef2cb62252ec12ea7bb9ae057bd1.tar.gz
dexon-solidity-4588eda622c9ef2cb62252ec12ea7bb9ae057bd1.tar.zst
dexon-solidity-4588eda622c9ef2cb62252ec12ea7bb9ae057bd1.zip
Store commit hash and handle prerelease vor all automation tools.
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/buildinfo.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/scripts/buildinfo.cmake b/cmake/scripts/buildinfo.cmake
index 0d2d8870..ad23ca86 100644
--- a/cmake/scripts/buildinfo.cmake
+++ b/cmake/scripts/buildinfo.cmake
@@ -23,6 +23,7 @@ endif()
# If it does not exist, create our own prerelease string
if (EXISTS ${ETH_SOURCE_DIR}/prerelease.txt)
file(READ ${ETH_SOURCE_DIR}/prerelease.txt SOL_VERSION_PRERELEASE)
+ string(STRIP ${SOL_VERSION_PRERELEASE} SOL_VERSION_PRERELEASE)
else()
string(TIMESTAMP SOL_VERSION_PRERELEASE "develop.%Y.%m.%d" UTC)
endif()