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

CMake/Mac only supports compiler features for AppleClang

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1, 5.9, 5.10, 5.11, 5.12
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      On Mac, CMake only supports compiler features for GCC and AppleClang. This means that CMake will issue an error when configuring any project that uses Qt5 and a non-Apple Clang build. An incomprehensible error, at that.

      Out-commenting the following line in Qt5CoreConfigExtras solves the issue:

      set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES cxx_decltype)

      NB: this is not about building Qt with a different compiler. This is about compiling 3rd party software, and that ought to be possible with the compiler of choice, esp. a compiler like clang that doesn't come with C++ runtime issues like GCC tends to.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-57886
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              krf Kevin Funk
              Reporter:
              rjvbertin René Bertin
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes