Comment 1 for bug 1595527

Revision history for this message
xzcvczx (xzcvczx) wrote :

I looked into doing this, It would be realtively simple for hte stables, just a case of adding it to the CMakeLists.txt files, However in the case of the nightlies the current version is never exposed to cmake only inside a header file that is used from the source code, So this would either have to be parsed out of the generated header (not a fan at all of this option) or preferably the method of which it figures out the latest revision would have to be changed so thats exposed to CMake.

Currently another version of cmake is run that checks for a .bzr or .git subdirectory in the src tree and then uses bzr and/or git to figure out the revision number and then creates the required header file.

This is also done from the common/CMakeLists.txt rather than the root one which also doesn't seem like the best idea if it were done properly and the version information was just acquired into a cmake variable and then passed to the make process as a -D or even creating the header file from the provided revision/version number all the time.