Details
-
Bug
-
Resolution: Out of scope
-
P3: Somewhat important
-
None
-
5.7.1, 5.9, 5.10, 5.11, 5.12
-
None
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
- replaces
-
QTBUG-54666 CMake fails to configure Android build
- Closed
For Gerrit Dashboard: QTBUG-57886 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
181230,4 | CMake: More meaningful warning if CMP0025 not set | 5.8 | qt/qtbase | Status: ABANDONED | -1 | 0 |