diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 11:32:13 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-17 11:32:13 +0200 |
commit | 3266cba9e0e9e3dec20bd25e836cf500967b143d (patch) | |
tree | 6e3d42d3d4cbadac9506ef6a35eb6a4a9d36f8b4 /cmake | |
parent | 82f6e8acfd87d7e03ff696616b09b042035eb3a9 (diff) |
cmake: fix git describe --dirty
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/GetGitRevisionDescription.cmake | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cmake/GetGitRevisionDescription.cmake b/cmake/GetGitRevisionDescription.cmake index 8a7f0eeb..e4ac79c0 100644 --- a/cmake/GetGitRevisionDescription.cmake +++ b/cmake/GetGitRevisionDescription.cmake @@ -77,15 +77,15 @@ function(git_describe _var) if(NOT GIT_FOUND) find_package(Git QUIET) endif() - get_git_head_revision(refspec hash) + #get_git_head_revision(refspec hash) if(NOT GIT_FOUND) set(${_var} "GIT-NOTFOUND" PARENT_SCOPE) return() endif() - if(NOT hash) - set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE) - return() - endif() + #if(NOT hash) + # set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE) + # return() + #endif() # TODO sanitize #if((${ARGN}" MATCHES "&&") OR @@ -100,7 +100,6 @@ function(git_describe _var) execute_process(COMMAND "${GIT_EXECUTABLE}" describe - ${hash} ${ARGN} WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" |