Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2
-
None
-
-
3c06129432452e212a338f688d3ff1c7a563d270 (qt/qtscxml/dev)
Description
The problem happens when both qtscxml and qtremoteobjects are cloned.
To reproduce the problem initialize the repository with:
./init-repository --module-subset=qtbase,qtdeclarative,qtscxml,qtremoteobjects
Then configure Qt in an empty build directory:
../qt6-dev-src/configure -developer-build
The configure fails with:
CMake Error at qtbase/cmake/QtExecutableHelpers.cmake:28 (add_executable): add_executable cannot create target "tst_parser" because another target with the same name already exists. The existing target is an executable created in source directory "/mnt/hdd/work/Qt/tmp/qt6-dev-src/qtremoteobjects/tests/auto/repparser". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): qtbase/cmake/QtTestHelpers.cmake:214 (qt_internal_add_executable) qtscxml/tests/auto/parser/CMakeLists.txt:6 (qt_internal_add_test) CMake Error at qtbase/cmake/QtTestHelpers.cmake:331 (add_custom_target): add_custom_target cannot create target "tst_parser_check" because another target with the same name already exists. The existing target is a custom target created in source directory "/mnt/hdd/work/Qt/tmp/qt6-dev-src/qtremoteobjects/tests/auto/repparser". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): qtscxml/tests/auto/parser/CMakeLists.txt:6 (qt_internal_add_test)
I have also attached the full log of the configure: developer-build.log
It doesn't fail when configuring without -developer-build or https://codereview.qt-project.org/c/qt/qtbase/+/348485 is reverted from qtbase.
Attachments
For Gerrit Dashboard: QTBUG-93727 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
349103,3 | Fix duplicate autotest target name | dev | qt/qtscxml | Status: MERGED | +2 | 0 |