I know it's been a while, but I got almost the same problem. Did you find any solution or you just redesigned your code?
To clarify, I have version.h file that is being generated with
PRE_TARGETDEPS += version.h
PRE_TARGETDEPS += version.h
To copy to clipboard, switch view to plain text mode
and rc file that has version.h included in it
RC_FILE += resource.rc
RC_FILE += resource.rc
To copy to clipboard, switch view to plain text mode
The problem is when I am building the project using several cores it executes resource generation and version.h at the same time and sometimes the version file is not generated yet when winres tries to include it. I need to set up some kind of dependency so version.h would be generated before resource file.
Thanks.
Bookmarks