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

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: