From: Ryan Pavlik Date: Tue, 19 Jan 2021 19:55:20 +0000 (-0600) Subject: d/rules: Specify package version to CMake. X-Git-Tag: archive/raspbian/3.1+ds1-4+rpi1^2~103 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6edd99f8917f43929b10c2a7376d9239d91ba9f3;p=solvespace.git d/rules: Specify package version to CMake. --- diff --git a/debian/rules b/debian/rules index 08f0acf..c985337 100755 --- a/debian/rules +++ b/debian/rules @@ -9,3 +9,9 @@ endif %: dh $@ + +# Tell CMake what the package version will be, to embed in the version string. +# We do this for upstream's benefit, in lieu of including a git commit hash. +override_dh_auto_configure: + dh_auto_configure -- \ + -DDEBVERSION=$(shell dpkg-parsechangelog --show-field version)