aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/scripts
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-09-15 23:34:12 +0800
committerGitHub <noreply@github.com>2016-09-15 23:34:12 +0800
commit3b6e131d852eab0c74260d9ca5c7a11501265da1 (patch)
tree776d63182defa7a325ac51c8e77b94b687d09c60 /cmake/scripts
parentaf86bfb07df801d4b9b2d9782f3a6c764a2b9859 (diff)
downloaddexon-solidity-3b6e131d852eab0c74260d9ca5c7a11501265da1.tar.gz
dexon-solidity-3b6e131d852eab0c74260d9ca5c7a11501265da1.tar.zst
dexon-solidity-3b6e131d852eab0c74260d9ca5c7a11501265da1.zip
Fix hex check.
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/buildinfo.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/scripts/buildinfo.cmake b/cmake/scripts/buildinfo.cmake
index e6077a34..8e1615f6 100644
--- a/cmake/scripts/buildinfo.cmake
+++ b/cmake/scripts/buildinfo.cmake
@@ -52,7 +52,7 @@ if (NOT SOL_COMMIT_HASH)
message(FATAL_ERROR "Unable to determine commit hash. Either compile from within git repository or "
"supply a file called commit_hash.txt")
endif()
-if (NOT SOL_COMMIT_HASH MATCHES [a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9])
+if (NOT SOL_COMMIT_HASH MATCHES [a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9])
message(FATAL_ERROR "Malformed commit hash \"${SOL_COMMIT_HASH}\". It has to consist of exactly 8 hex digits.")
endif()