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

CMake/Mac only supports compiler features for AppleClang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.7.1, 5.9, 5.10, 5.11, 5.12
    • Build System: CMake
    • None
    • 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

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes