Some QMake projects use system()
commands which are only meant to be executed during the build, and usually only for a specific OS, for example:
win32:system(cmd.exe /E myscript.bat)
Historically, Qt Creator has ignored such commands when parsing .pro/.pri files. But starting with Qt Creator 4.13.0, it now runs them during project loading, which can result in unexpected actions or failures.
How can we tell Qt Creator not to parse specific statements or blocks from a .pro/.pri file, so that they only get executed by QMake itself?