Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28975

Unable to compile default test app qglobal.h(13): fatal error C1083: Cannot open include file: 'type_traits' when using CMakePresets.json

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 10.0.0
    • None
    • Windows

      I was able to reproduce it in a simple TestApp. This only happens when using a CMakePresets.json kit. Regular Qt kits with the same Qt version work. The only change was to include `#include <QtGlobal>` (and switching to C++20) that contains the error:

      C:\Qt\6.5.0\msvc2019_64\include\QtCore/qglobal.h(13): fatal error C1083: Cannot open include file: 'type_traits': No such file or directory

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

            cadam Cristian Adam
            kelteseth Elias Steurer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes