-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
Qt Creator 18.0.0-beta2
That means when adding another test project into the same project, it will cause a CMake error because the target already exists.
To reproduce:
- create project
- add new Qt Quick Test subproject
- add new Qt Quick Test subproject
This results in:
[cmake] CMake Error at othertest/CMakeLists.txt:21 (add_custom_target): [cmake] add_custom_target cannot create target "qmlfiles" because another target [cmake] with the same name already exists. The existing target is a custom target [cmake] created in source directory [cmake] "/home/jopoikel/work/tests/quickcmake/sometest". See documentation for [cmake] policy CMP0002 for more details.
Perhaps this could be fixed by concatenating the test name into this target name.