tests: Fix target name overlap

In the build of the `tests/auto/qml/qqmlmoduleplugin/pluginWrongCase`
library, the target name overlapped with that of the library in
`tests/auto/qml/qqmlmoduleplugin/plugin`.

At least in the case of the (officially unsupported) MSVS generator this
resulted in an invalid build configuration (generated a solution file
containing two projects with the same name).

Change-Id: I050f6f854b734632003fda92b34666faf2137f50
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Miguel Costa 2024-08-14 14:45:30 +02:00
parent ad6797b48d
commit 0800a09a5a
1 changed files with 5 additions and 3 deletions

View File

@ -4,10 +4,10 @@
# Generated from pluginWrongCase.pro.
#####################################################################
## Plugin Generic Library:
## pluginWrongCase Generic Library:
#####################################################################
qt_internal_add_cmake_library(Plugin
qt_internal_add_cmake_library(pluginWrongCase
MODULE
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../imports/org/qtproject/WrongCase"
SOURCES
@ -20,11 +20,13 @@ qt_internal_add_cmake_library(Plugin
Qt::QmlPrivate
)
set_target_properties(pluginWrongCase PROPERTIES OUTPUT_NAME "Plugin")
#### Keys ignored in scope 1:.:.:pluginWrongCase.pro:<TRUE>:
# IMPORT_FILES = "qmldir"
# TEMPLATE = "lib"
qt_autogen_tools_initial_setup(Plugin)
qt_autogen_tools_initial_setup(pluginWrongCase)
# special case begin
file(COPY qmldir
DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/../imports/org/qtproject/WrongCase"