From 5eb5e54b235ec8bf8211683f0d45bf19ef3c3a13 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 2 Sep 2024 14:36:22 +0200 Subject: [PATCH] Extensions: Make dependency id lowercase Change-Id: Icda5b426e7a3e15519e793789c117eabcd753316 Reviewed-by: Eike Ziller --- cmake/QtCreatorAPI.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 6787e4bd886..65ca26acd61 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -399,6 +399,7 @@ function(add_qtc_plugin target_name) else() get_property(_v TARGET "${i}" PROPERTY _arg_VERSION) endif() + string(TOLOWER ${i} i) string(APPEND _arg_DEPENDENCY_STRING " { \"Id\" : \"${i}\", \"Version\" : \"${_v}\" }" ) @@ -410,6 +411,7 @@ function(add_qtc_plugin target_name) else() get_property(_v TARGET "${i}" PROPERTY _arg_VERSION) endif() + string(TOLOWER ${i} i) string(APPEND _arg_DEPENDENCY_STRING " { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"optional\" }" ) @@ -418,6 +420,7 @@ function(add_qtc_plugin target_name) if (i MATCHES "^QtCreator::") string(REPLACE "QtCreator::" "" i ${i}) endif() + string(TOLOWER ${i} i) set(_v ${IDE_VERSION}) string(APPEND _arg_DEPENDENCY_STRING " { \"Id\" : \"${i}\", \"Version\" : \"${_v}\", \"Type\" : \"test\" }" @@ -433,6 +436,7 @@ function(add_qtc_plugin target_name) list(GET _arg_PLUGIN_MANUAL_DEPENDS ${i} dep_id) list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_version_i} dep_version) list(GET _arg_PLUGIN_MANUAL_DEPENDS ${dep_type_i} dep_type) + string(TOLOWER ${dep_id} dep_id) string(APPEND _arg_DEPENDENCY_STRING " { \"Id\" : \"${dep_id}\", \"Version\" : \"${dep_version}\", \"Type\" : \"${dep_type}\" }" )