[CMake] Build Number
Renan Biegelmeyer da Silva
renan.silva at getnet.com.br
Wed Jul 3 09:24:06 EDT 2013
Hello,
We have here several projects is this structure:
MainProj (version 1.0.0.0-1)
|
|--- proj1 (version 1.0.0.0-1)
|--- proj2 (version 1.0.0.0-1)
| |
| |---proj2.1 (version 1.0.0.0-1)
|--- proj3 (version 1.0.0.0-1)
|
|---proj3.1 (version 1.0.0.0-1)
...
Our release convention is A.B.C.D-E:
A -> major
B -> minor
C -> micro
D -> patch
E -> build number
Sometimes we make modifications on some of this projects. Suppose I change some code on proj1 and proj2.1.
MainProj (version 1.0.0.0-2) - this recompiled because it's dependencies have changed
|
|--- proj1 (version 1.0.0.1-1) - this is recompiled because it's code have changed
|--- proj2 (version 1.0.0.0-2) - this recompiled because it's dependencies have changed
| |
| |---proj2.1 (version 1.0.0.1-1) - this is recompiled because it's code have changed
|--- proj3 (version 1.0.0.0-1) - this haven't changed
|
|---proj3.1 (version 1.0.0.0-1) - this haven't changed
So, my question is:
Is there a way to detect a rebuilt (code has NOT changed) and increment it's build number? And when code change increment it's patch number?
Regards,
Renan Biegelmeyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130703/b004dad3/attachment-0001.htm>
-------------- next part --------------
AVISO LEGAL
As informa??es contidas neste e-mail e nos arquivos anexos s?o confidenciais e para uso exclusivo do destinat?rio aqui indicado.
Caso n?o seja o destinat?rio desta mensagem, por favor, apague o conte?do do e-mail e notifique o remetente imediatamente.
Qualquer utiliza??o indevida ou divulga??o do conte?do deste e-mail, parcial ou total, ? estritamente proibida e sujeita ?s penalidades legais.
A transmiss?o de mensagens e arquivos pela internet n?o garante a integridade de seu conte?do.
O remetente n?o pode ser responsabilizado pela mensagem, caso ela tenha sido modificada.
More information about the CMake
mailing list