CMakeLists: set variable to zero make it unavailable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 27.09.2018 09:22 schrieb Martin Kepplinger:
> hi Tuomo,
> 
> When I change the top-level CMakeLists.txt's version variable so that
> one is zero, like:
>                    set(LIBTS_VERSION_REVISION 0)
> I get:
> 
> [ 19%] Building C object src/CMakeFiles/tslib.dir/ts_version.c.o
> /home/martin/dev/tslib/src/ts_version.c: In function ?ts_libversion?:
> /home/martin/dev/tslib/src/ts_version.c:49:10: error:
> ?LIBTS_VERSION_REVISION? undeclared (first use in this function)
>   patch = LIBTS_VERSION_REVISION;
> 
> 
> Could you look into this? Especially this variable must be possible to 
> be 0.
> 

After playing around with it a little I came up with this, which seems 
to build correctly:
https://github.com/kergoth/tslib/commit/1d125b6b4fda0542696342b1da0b2efe66a93ab4

Does this change make sense to you?

thanks

                               martin




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux