cmake build: Remove branding from target names

Targets are never branded

Change-Id: If7f23ac005b5492d52f87ba71789e674bb077a00
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2020-11-11 16:11:07 +01:00
committed by Tim Jenssen
parent b7d35fee82
commit fd6fe3f4e6
+6 -6
View File
@@ -133,7 +133,7 @@ function(add_qtc_library name)
endif()
add_library(${name} ${library_type} ${_arg_SOURCES})
add_library(${IDE_CASED_ID}::${name} ALIAS ${name})
add_library(QtCreator::${name} ALIAS ${name})
set_public_headers(${name} "${_arg_SOURCES}")
# TODO remove, see above
@@ -339,9 +339,9 @@ function(add_qtc_plugin target_name)
set(_arg_DEPENDENCY_STRING "\"Dependencies\" : [\n")
foreach(i IN LISTS _DEP_PLUGINS)
if (i MATCHES "^${IDE_CASED_ID}::")
if (i MATCHES "^QtCreator::")
set(_v ${IDE_VERSION})
string(REPLACE "${IDE_CASED_ID}::" "" i ${i})
string(REPLACE "QtCreator::" "" i ${i})
else()
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
endif()
@@ -353,9 +353,9 @@ function(add_qtc_plugin target_name)
_arg_DEPENDENCY_STRING "${_arg_DEPENDENCY_STRING}"
)
foreach(i IN LISTS ${_arg_RECOMMENDS})
if (i MATCHES "^${IDE_CASED_ID}::")
if (i MATCHES "^QtCreator::")
set(_v ${IDE_VERSION})
string(REPLACE "${IDE_CASED_ID}::" "" i ${i})
string(REPLACE "QtCreator::" "" i ${i})
else()
get_property(_v TARGET "${i}" PROPERTY _arg_VERSION)
endif()
@@ -393,7 +393,7 @@ function(add_qtc_plugin target_name)
endif()
add_library(${target_name} SHARED ${_arg_SOURCES})
add_library(${IDE_CASED_ID}::${target_name} ALIAS ${target_name})
add_library(QtCreator::${target_name} ALIAS ${target_name})
set_public_headers(${target_name} "${_arg_SOURCES}")
### Generate EXPORT_SYMBOL