Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0
-
None
-
de854aa37f49de6d8f6ee12c0e9d247c5143c2da (qt/qtbase/5.12)
Description
Hi,
I currently have this option:
QMAKE_CXXFLAGS += /std:c++17
The same warning is thrown when using:
CONFIG += C+17
And it gives me this warning:
WARNING: Could not parse Compiler option '/std:c++17'; added to AdditionalOptions.
This is for generating vcxproj files from Qt's .pro files with a command like:
qmake -tp vc
Note that the "CONFIG = C+17" generates a "-std:c+17" not a "/std:c+17" though the visual studio compiler seems to be fine with either.
I think QMake should just allow the option to be given. It does (intentional or not) do the right thing. It adds the flag to the AdditionalOptions and works just fine when compiling. Just the warning should not be there.
Best regards,
Mark