Current version uses form of major.minor.patch.
Our debian package may have addition strings, currently YYMMDDHH for nightly builds.
Resulting, something like 1.16.0-21052710 may exist.
As our command lines show the version through _vconone_ , lets' find a way to print debian package version string.
Related things tochange
Limitations
Current version
$ circle2circle --version
circle2circle version 1.16.0
Expected version
$ circle2circle --version
circle2circle version 1.16.0 (1.16.0-21052710)
CC @mhs4670go
Hmmm.. First thing that came to me is to use dpkg-parsechangelog command in vconone.
$ pwd
ONE
$ dpkg-parsechangelog --show-field Version
1.16.0
$ pwd
ONE/compiler/vconone
$ dpkg-parsechangelog --file ../../debian/changelog --show-field Version
1.16.0
And, use this result at cmake.
@seanshpark If this issue is resolved, debian/changelog would be the only place to have version info? Or vconone'd still have its version info?
debian/changelog would be the only place to have version info? Or vconone'd still have its version info?
Ah, there will be both. vconone will contain it's own version and this will be the default.
CMake is to override the version and do something by manual.
I havn't a concrete case for this usage. It's to prepare when we may need someday.
@seanshpark In versioning(?) meeting, we've decided to print just major.minor.patch without build number. So, things are fine the way they are:)