Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-75275

C++17 config option shows warning when generating vcxproj

    XMLWordPrintable

Details

    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            markg85 Mark
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes