Make CMake get Graphviz version from autogen.sh by parsing it
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Thu, 18 Jun 2020 11:08:04 +0000 (13:08 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 29 Jun 2020 04:29:23 +0000 (06:29 +0200)
commitce918fd0fc94d29c23f335e57b2f11bb8768508d
tree40b102f20c88d6df0d51f8ac29832df336b9b464
parent1affbf2aad956471a335e69adcd2c2c83fb0af68
Make CMake get Graphviz version from autogen.sh by parsing it

This will make autotools and CMake builds have a single source of
truth for the Graphviz version.

First, the major, minor and patch versions are retrieved. If the patch
version is "$GRAPHVIZ_VERSION_DATE", the patch version is set to the
committer date of the latest commit. This effectively repeals part of
the intention of 266ff5ee80b2d91231907e90ec650154f5225aa5: "Don't
encode build date stamp in it to be able to create reproducable
builds".
.gitlab-ci.yml
CMakeLists.txt