changeset 1167:bcaf95730883

version: use + to separate latest tag and the latest tag distance Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Fri, 01 Feb 2019 21:02:48 -0500
parents eccae0d2c849
children db996b483b4a
files cmake/hg.cmake
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cmake/hg.cmake	Sun Jan 27 13:40:02 2019 -0500
+++ b/cmake/hg.cmake	Fri Feb 01 21:02:48 2019 -0500
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2017 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+# Copyright (c) 2017-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -42,7 +42,7 @@
 
 # TODO: if there are uncommitted changes, append -dirty
 gethgrev(VERSION
-	"{ifeq(latesttagdistance,0,\"{latesttag}\",\"{latesttag}-{latesttagdistance}-{node|short}\")}")
+	"{ifeq(latesttagdistance,0,\"{latesttag}\",\"{latesttag}+{latesttagdistance}-{node|short}\")}")
 
 if(${HG_COMMIT} STREQUAL "unknown")
 	message(WARNING "Failed to get revision info from Mercurial.")