I want to set my some define in code to result from some command (for example get current revision number). What is the easiest way to achieve this ? I think about generate in prebuild step some header file, but mayby there is simpler solution.
Asked
Active
Viewed 46 times
1
-
1I don't think you'll find a better way than a generated header file. – Angew is no longer proud of SO Jul 02 '15 at 13:16
1 Answers
0
If you can change the build process command lines, you might be able to integrate this into VS command line via /D
parameter. See also this question for discussion on how output from some command can be integrated into another command.