Conditionally disable warnings with qmake/gcc?

后端 未结 5 1157
予麋鹿
予麋鹿 2021-01-02 22:20

I am involved with a software project written in Qt and built with qmake and gcc on Linux. We have to link to a third-party library that is of fairly low quality and spews

5条回答
  •  死守一世寂寞
    2021-01-02 22:53

    Normally, you'd build the third-party library in a separate directory from your own code, so you would have a different makefile for it, so you could put a different set of flags for that compilation.

    If you've mixed the third-party library code with your own code, you have set yourself up for a maintenance nightmare.

提交回复
热议问题