Include dirty status in core information 165/head
authoresainane <esainane+github@gmail.com>
Mon, 30 Nov 2015 11:25:20 +0000 (00:25 +1300)
committeresainane <esainane+github@gmail.com>
Mon, 30 Nov 2015 11:26:19 +0000 (00:26 +1300)
If a core was built with a dirty working tree, -dirty will be appended
to the version string. Interestingly, we already test for this in
quassel.cpp (line 292), but this was not being added in the cmake phase.

CMakeLists.txt

index c2ef8b2..ec8d61e 100644 (file)
@@ -561,7 +561,7 @@ endif()
 
 include(GetGitRevisionDescription)
 get_git_head_revision(GIT_REFSPEC GIT_HEAD)
-git_describe(GIT_DESCRIBE --long)
+git_describe(GIT_DESCRIBE --long --dirty)
 
 # If not in a Git repo try to read GIT_HEAD and GIT_DESCRIBE from
 # enviroment