[Qbs] Set cpp properties for generated cpp files (moc) does not seem to work

Maximilian Hrabowski hrabowski at clausmark.com
Thu May 14 14:22:53 CEST 2020

Hi all,

we have quite a strict warning policy so all warnings are treated as errors in our code. This creates problems when including third-party code that produces warnings, so usually those files are put in a special group and warningsAreErrors is turned off:

Group {
cpp.treatWarningsAsErrors: false

This usually works quite well. But now i’ve got the problem that i need to disable this for cpp files generated by moc. I tried the following approach but it does not seem to work:

Group {
fileTagsFilter: [“moc_cpp"]
cpp.treatWarningsAsErrors: false

is this supposed to work and probably a bug (maybe related to https://bugreports.qt.io/browse/QBS-1030) or are my expectations wrong…


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20200514/1e96a918/attachment.html>

More information about the Qbs mailing list