[qmake] system call used to work with Qt4.7.x, fails with Qt4.8
-
I am calling a .bat file (I'm running windows) with a few arguments in a .pri file.
@# ==== Versioning: Windows =====================================================
system(string_replacer.bat "GLOBAL_VER" "$$GLOBAL_MAJOR,$$GLOBAL_MINOR,$$GLOBAL_BUILD" version_win_template.h > version_win.h)@
I am getting this error message when running qmake on Qt4.8:
[quote]system(exec) requires one argument[/quote]How can I fix this?
-
Hum it looks it has to do with quote escaping.
Changed the line to
@# ==== Versioning: Windows =====================================================
system(string_replacer.bat "GLOBAL_VER" ""$$GLOBAL_MAJOR,$$GLOBAL_MINOR,$$GLOBAL_BUILD"" version_win_template.h > version_win.h)
@ and it works.