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

[CMake] Qt includes as SYSTEM includes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.1.0 , 5.1.1, 5.2.0, Some future release
    • Build System
    • None

    Description

      Hi!

      It would be nice if the Qt5 CMake files offer an option to include the Qt headers as system headers.

      CMake 2.8.11 introduced that option for Qt4:

      if(QT_INCLUDE_DIRS_NO_SYSTEM)
        include_directories(${QT_INCLUDE_DIR})
      else(QT_INCLUDE_DIRS_NO_SYSTEM)
        include_directories(SYSTEM ${QT_INCLUDE_DIR})
      endif(QT_INCLUDE_DIRS_NO_SYSTEM)
      

      Please also enable this for Qt5.

      For instance, if we use the compiler flag '-Wold-style-cast' we get warnings inside the Qt headers which we would like to suppress that way.

      Best Regards,
      Gerhard

      Attachments

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

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            gscheikl Gerhard Scheikl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes