I would like to pass some options to a compiler. The option would have to be calculated at compile time - everytime when \'make\' is invoked, not when \'cmake\', so execute_
Does this work?
d=`perl -e"print qq(Whatever calculated at runtime);"`; g++ prog.cpp -o prog -DDATETIME=$$d