Reputation: 197
I would like my output file to include the version number. I am using the auto-versioning feature in Code::Blocks so I have version.h which includes a couple of defines and variables that relate to the current version/build of the software.
I can see that there is the custom variables tab in build options or global compiler setting where I setup a variable named "version" that I can then use in the output filename. What I can't figure out is how to have that variable equal any of the defines or variables found in version.h that represent the current version of the software.
If someone can help me with this it would be very appreciated.
I do realize I could also do this with a post build script but if there is a way of doing it with functionality in the IDE it seems easier to me at this point.
This is admittedly a direct duplicate of this questions (project version in .exe-filename) but it is 5 years old and doesn't seem to work for me (or even the original poster for that matter) so I'm asking it as a new question.
With the answer given in the question above, I get the same results as listed by the original asker in the comments: when compiling it says no such file or directory.
Thanks
Upvotes: 0
Views: 203