Check the output file. It is used for inclusion during compilation only (and in fact reflects the code in Qt4Macro.cmake as well). So this custom code was incorrect in the first place, but as unix/linux handle files that are absolute (e.g., /.../build//home/peistchie/src/webodf/webversion.js) it was never noticed. The new code is definitely correct :)