fix warnings that "dir not in version control" and generate version.cpp ...

...with commit log when using git,rather than svn.
这等于直接赋值