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

CMake/Mac only supports compiler features for AppleClang

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.7.1, 5.9, 5.10, 5.11, 5.12
    • Build System: CMake
    • None
    • macOS

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes