From 6a431f745c9d2906de34530e24c85933fe587d65 Mon Sep 17 00:00:00 2001 From: click Date: Thu, 28 Apr 2011 18:53:23 +0200 Subject: Core: get rid of the revision-id once and for all - it's not useful in a DVCS at all --- cmake/genrev.cmake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cmake/genrev.cmake') diff --git a/cmake/genrev.cmake b/cmake/genrev.cmake index b7e0bf16c8b..9ac4c04019e 100644 --- a/cmake/genrev.cmake +++ b/cmake/genrev.cmake @@ -54,14 +54,10 @@ if(NOT rev_info) # No valid ways available to find/set the revision/hash, so let's force some defaults set(rev_hash_str "Archive") set(rev_hash "0") - set(rev_id_str "0") - set(rev_id "0") else() # Extract revision and hash from git string(REGEX REPLACE init-|[0-9]+-g "" rev_hash_str ${rev_info}) string(REGEX REPLACE [+]+ "" rev_hash ${rev_hash_str}) - string(REGEX REPLACE init-|-g[^+]+ "" rev_id_str ${rev_info}) - string(REGEX REPLACE [+]+ "" rev_id ${rev_id_str}) endif() # Its not set during initial run @@ -70,11 +66,11 @@ if(NOT BUILDDIR) endif() # Create the actual revision.h file from the above params -if(NOT "${rev_id_cached}" MATCHES "${rev_id_str}") +if(NOT "${rev_hash_cached}" MATCHES "${rev_hash_str}") configure_file( "${CMAKE_SOURCE_DIR}/revision.h.in.cmake" "${BUILDDIR}/revision.h" @ONLY ) - set(rev_id_cached "${rev_id_str}" CACHE INTERNAL "Cached revision ID") + set(rev_hash_cached "${rev_hash_str}" CACHE INTERNAL "Cached commit-hash") endif() -- cgit v1.2.3