Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.4.0 Beta2, 6.5.0 FF
-
None
-
efa979b053 (qt/qttools/dev) e9457483fe (qt/qttools/6.4) e9457483fe (qt/tqtc-qttools/6.4) efa979b053 (qt/tqtc-qttools/dev) 014e6d8a99 (qt/tqtc-qttools/6.2) c8a1aef992 (qt/qttools/6.3) c8a1aef992 (qt/tqtc-qttools/6.3) c8a1aef992 (qt/qttools/6.3.2)
Description
There are these 3 lines in qttools/src/assistant/CMakeLists.txt:
qt_internal_set_exceptions_flags(litehtml OFF)
qt_disable_warnings(litehtml)
qt_disable_warnings(gumbo)
When litehtml is found on the system, CMake refuses to set target properties on such targets:
[cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:189 (target_compile_definitions):
[cmake] Cannot specify compile definitions for target "litehtml" which is not built
[cmake] by this project.
[cmake] Call Stack (most recent call first):
[cmake] qttools/src/assistant/CMakeLists.txt:35 (qt_internal_set_exceptions_flags)
[cmake]
[cmake]
[cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:208 (get_target_property):
[cmake] get_target_property() called with non-existent target "litehtml".
[cmake] Call Stack (most recent call first):
[cmake] qttools/src/assistant/CMakeLists.txt:36 (qt_disable_warnings)
[cmake]
[cmake]
[cmake] CMake Error at qtbase/cmake/QtFlagHandlingHelpers.cmake:208 (get_target_property):
[cmake] get_target_property() called with non-existent target "gumbo".
[cmake] Call Stack (most recent call first):
[cmake] qttools/src/assistant/CMakeLists.txt:37 (qt_disable_warnings)
[cmake]
[cmake]
uninstalling litehtml from system resolves the error.
Attachments
Issue Links
- is duplicated by
-
QTBUG-104996 top-level build broken again (litehtml in qttools?)
- Closed
- is replaced by
-
QTBUG-106552 qttools: Build failure if litehtml is found on the system
- Closed
For Gerrit Dashboard: QTBUG-105130 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
423410,2 | CMake: Fix build with system litehtml and gumbo | dev | qt/qttools | Status: MERGED | +2 | 0 |
423482,2 | CMake: Fix build with system litehtml and gumbo | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
423483,2 | CMake: Fix build with system litehtml and gumbo | 6.3 | qt/qttools | Status: MERGED | +2 | 0 |
423487,2 | CMake: Fix build with system litehtml and gumbo | tqtc/lts-6.2 | qt/tqtc-qttools | Status: MERGED | +2 | 0 |