aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2019-07-27 17:10:39 +0100
committerPeter Wu <peter@lekensteyn.nl>2019-08-12 20:26:32 +0000
commit86a35ac6a20098c248b7a69944146bad368e6228 (patch)
treebaab0b53eff6ab9e34ddc769a29539fbe9a17ed4 /tools
parentb22030f7124bb48e80acc1ab93a1d9449c50a2df (diff)
cmake: allow VCSVERSION to be overridden with VCSVERSION_OVERRIDE
The default VCSVERSION from make-version.pl is based on the "git archive" information (for tarballs) or uses "git describe" to discover the version. Distributors such as Debian who directly build from a Git repository might want to include a deterministic value, therefore add a new option to achieve this. Change-Id: I5a39670519f4d846020d917b124fc4d548d00137 Reviewed-on: https://code.wireshark.org/review/34100 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-version.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/make-version.pl b/tools/make-version.pl
index aa89e690b1..553eccc472 100755
--- a/tools/make-version.pl
+++ b/tools/make-version.pl
@@ -14,6 +14,12 @@
# CMakeLists.txt will have the version_extra template appended to the
# version number. version.h will _not_ be generated if either argument is
# present.
+#
+# make-version.pl is called during the build to update version.h in the build
+# directory. To set a fixed version, use something like:
+#
+# cmake -DVCSVERSION_OVERRIDE="Git v3.1.0 packaged as 3.1.0-1"
+#
# XXX - We're pretty dumb about the "{vcsinfo}" substitution, and about having
# spaces in the package format.