Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.5.0 Beta3
-
None
-
-
bbfb9657f (dev), 58e615e00 (dev), 41de08dda (6.8), dd8b2fe8e (6.8), 5caab7e7e (6.7), f319c3826 (6.7), b0b79175d (tqtc/lts-6.5), 1f61ef841 (tqtc/lts-6.5), e48d1952f (dev), 2aed97fe2 (6.8), c7573b260 (tqtc/lts-6.5)
Description
See https://codereview.qt-project.org/c/qt/qtquickeffectmaker/+/454986/4/src/doc/CMakeLists.txt#2
add_library(QtQuickEffectMakerDoc INTERFACE) target_link_libraries(QtQuickEffectMakerDoc INTERFACE Qt::Core)
results in this error during the generation phase with CMake 3.16 on Windows:
-- Configuring done CMake Error at qtquickeffectmaker/src/doc/CMakeLists.txt:1 (add_library): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "WIN32_EXECUTABLE" is not allowed.
The culprit is this bit in the interface of QtCore:
if(WIN32) list(APPEND entrypoint_conditions "$<BOOL:$<TARGET_PROPERTY:WIN32_EXECUTABLE>>") endif()
even though it's wrappend in an AND condition that checks whether the target's type is EXECUTABLE...
Attachments
Issue Links
- is duplicated by
-
QTBUG-128640 Building Qt 6.8.0 with CMake 3.16 fails due to
-
- Closed
-
For Gerrit Dashboard: QTBUG-111760 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
483430,2 | Add a workaround for CMake<=3.18 issue with INTERFACE_LIBRARY on Windows | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
588756,3 | CMake: Fix build with CMake 3.16 on Windows | dev | qt/qtactiveqt | Status: MERGED | +2 | 0 |
588760,2 | CMake: Fix build with CMake 3.16 on Windows | dev | qt/qtquickeffectmaker | Status: MERGED | +2 | 0 |
589130,2 | CMake: Fix build with CMake 3.16 on Windows | 6.8 | qt/qtactiveqt | Status: MERGED | +2 | 0 |
589131,2 | CMake: Fix build with CMake 3.16 on Windows | 6.8 | qt/qtquickeffectmaker | Status: MERGED | +2 | 0 |
589225,2 | CMake: Fix build with CMake 3.16 on Windows | 6.7 | qt/qtactiveqt | Status: MERGED | +2 | 0 |
589227,2 | CMake: Fix build with CMake 3.16 on Windows | 6.7 | qt/qtquickeffectmaker | Status: MERGED | +2 | 0 |
589240,2 | CMake: Fix build with CMake 3.16 on Windows | tqtc/lts-6.5 | qt/tqtc-qtquickeffectmaker | Status: MERGED | +2 | 0 |
589262,2 | CMake: Fix build with CMake 3.16 on Windows | tqtc/lts-6.5 | qt/tqtc-qtactiveqt | Status: MERGED | +2 | 0 |
599740,3 | Restore link to Qt::Core for non-Windows documentation-only builds | dev | qt/qtactiveqt | Status: MERGED | +2 | 0 |
603127,2 | Restore link to Qt::Core for non-Windows documentation-only builds | 6.8 | qt/qtactiveqt | Status: MERGED | +2 | 0 |
603209,2 | Restore link to Qt::Core for non-Windows documentation-only builds | tqtc/lts-6.5 | qt/tqtc-qtactiveqt | Status: MERGED | +2 | 0 |