This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Version Control in CCS 5.4

Is there a nice way to increment software versions within this tool?  I am sure it is really obvious but my web searches have failed me.  I know that this is probably an easy answer so just an informational link or even and search string would get you a "Verify Answer"!

EDIT:  I think I am actually just looking for a simple way to increment a build/version number within the tool itself.  Right now, I am incrementing a suffix on the project title, there has to be a better way!

  • Hi William,

    William Perdikakis said:
    I think I am actually just looking for a simple way to increment a build/version number within the tool itself.  Right now, I am incrementing a suffix on the project title, there has to be a better way!

    I'm not quite sure I understand what you are trying to do here. Where exactly are you trying to increment a version number? In your source?

  • Is there a way to automatically increment a version/build number every time the build function completes?

  • Not a version or build number. But you can have a timestamp of sorts using the compiler __DATE__ and __TIME__ macros

  • Where would I use these macros?  Would I be able to append the date to the end of the name of the out or map files?

  • William Perdikakis said:
    Where would I use these macros?

    Right in your source code

    William Perdikakis said:
    Would I be able to append the date to the end of the name of the out or map files?

    Not using the macros I specified. You can use a post build step to rename the out and map files to whatever format you wish using environment variables.