参见https://codereview.qt-project.org/c/qt/qtbase/+/77960,原文是:
/FS forces the compiler to synchronize pdb file writes. This option is not needed when building with Visual Studio itself. Still, qmake needs to know it when parsing the compiler flags.
翻译成中文:这个选项-FS是为了并行写入pdb文件。在用Visual Studio构建的时候并不需要这个选项。尽管如此,qmake在解析编译器标志时仍需要知道它。
具体的修改方法是在files中,即https://codereview.qt-project.org/c/qt/qtbase/+/77960/1/qmake/generators/win32/msvc_objectmodel.cpp#512。找到源码路径下qmake/generators/win32/msvc_objectmodel.cpp,打开按照网页中的修改方案修改。再进行编译过程就不会出现这个警告了。