fix for gmxGenerateVersionInfo.cmake, now works with git >v1.5.1
authorSzilard Pall <pszilard@cbr.su.se>
Sat, 27 Mar 2010 21:57:20 +0000 (22:57 +0100)
committerSzilard Pall <pszilard@cbr.su.se>
Sun, 28 Mar 2010 04:01:09 +0000 (06:01 +0200)
cmake/gmxGenerateVersionInfo.cmake

index 5a15ef3e70afc0796ff9363178525c57ee7ce7ee..328e5bce566e9ba8695a749c90e925038b95fe69 100644 (file)
@@ -23,7 +23,8 @@
 # GMX_GIT_HEAD_HASH         - git hash of current local HEAD 
 # GMX_GIT_REMOTE_HASH       - git hash of the first ancestor commit from the 
 #                             main Gromacs repository 
-#
+# 
+# Szilard Pall (pszilard@cbr.su.se) 
 
 if(${PROJECT_VERSION} STREQUAL "")
     message(FATAL_ERROR "PROJECT_VERSION undefined!")
@@ -55,7 +56,7 @@ if(NOT "${GIT_BIN}" MATCHES ".*-NOTFOUND"
     ) 
 
    # get the full hash of the current HEAD 
-    execute_process(COMMAND ${GIT_BIN} rev-parse -q HEAD
+    execute_process(COMMAND ${GIT_BIN} rev-parse HEAD
         WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
         TIMEOUT 5
         OUTPUT_VARIABLE GMX_GIT_HEAD_HASH