kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14497
Re: version info does not get updated
On 31 August 2014 22:27, Andrew Zonenberg <azonenberg@xxxxxxxxxxxxxxx> wrote:
> Why does CMake not recompute this particular value during the
> pre-compile configuration step? It runs checks for changed stuff every
> time you "make" anyway and only caches certain things. Is it really that
> hard to not cache this particular value?
Currently KiCad uses a configure file mechanism for the version.h file
and it's not normal to regenerate these each time you make otherwise
you end up re-compiling everything that uses the file and then
re-linking everything that links to that target if the target's a
library (which in this case it is).
Therefore, when you bzr up - make rebuild_cache too in order to update
the version number. Caching this value makes subsequent repetitive
builds quicker. If you can suffer the time, just do a simple cheat:
bk.sh
#!/bin/bash
make rebuild_cache
make
just use bk.sh instead of make...
The following is from CMakeModules/version.h.cmake :
/*
* Define the current source code Subversion commit number. The version
* string defined below does not update automatically when building the
* source with make. Run make rebuild_cache to update version strings.
*/
Best Regards,
Brian.
Follow ups
References