← Back to team overview

kicad-developers team mailing list archive

Re: version info does not get updated

 


Le 02/09/2014 18:24, Wayne Stambaugh a écrit :
I have this on my list of things to look at.  It should be possible to
get CMake to generate make files that compare the source repo version
against the version.h file and recreate it as required every time make
is run.  Currently, the only time version.h gets updated is when the
CMake files are modified or make rebuild_cache is run.



I checked it right now : I added "make rebuild-dep" to beginning of the build process in kicad-install.sh. Running it with a kicad install witj not up to date version info results in rebuilding only build_version.cpp and relinking all parts that have a user interface.

And then I runt the install script again with the version I've just updated : Cmake regenerated the files (pretty fast), and then all steps completed and nothing was compiled. So I think there is no need to check for current version number before calling make rebuild-dep as it does not takes more times if not needed.

Well in fact I think nothing was re-compiled because the date was the same and so files are identical. But as it is *very* unlikely that if the date as changed the version has not, I still think there is no need for version checking.

regards,

yann



Follow ups

References