From 991b64a7e5bd8c46750afe0b7f47aa848ef34ce0 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 11 Jun 2021 12:55:32 +0200 Subject: [PATCH] Cleanup temporary code related to internal modules Remove the temprotary 'Private' targets of the iternal modules. Pick-to: 6.2 Task-number: QTBUG-87775 Change-Id: I9a2c7c8c2f63602476fd935b11dab7a835864537 Reviewed-by: Alexandru Croitor --- cmake/QtModuleHelpers.cmake | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmake/QtModuleHelpers.cmake b/cmake/QtModuleHelpers.cmake index eec70f86d4..1cb4f718f4 100644 --- a/cmake/QtModuleHelpers.cmake +++ b/cmake/QtModuleHelpers.cmake @@ -205,13 +205,6 @@ function(qt_internal_add_module target) _qt_config_module_name ${arg_CONFIG_MODULE_NAME}_private) set_property(TARGET "${target_private}" APPEND PROPERTY EXPORT_PROPERTIES _qt_config_module_name) - elseif(arg_INTERNAL_MODULE) - # TODO: We need to create temporary private targets for the internal modules to keep the - # existing code compatible to the internal modules that don't have the 'Private' suffix yet. - # Remove this once the migration is complete. - add_library("${target_private}" INTERFACE) - qt_internal_add_target_aliases("${target_private}") - target_link_libraries(${target_private} INTERFACE ${target}) endif() if(NOT arg_HEADER_MODULE) @@ -634,8 +627,7 @@ set(QT_LIBINFIX \"${QT_LIBINFIX}\")") file(COPY ${extra_cmake_files} DESTINATION "${config_build_dir}") set(exported_targets ${target}) - #TODO: remove the 'OR arg_INTERNAL_MODULE' part once renaming of internal modules is finished. - if(NOT ${arg_NO_PRIVATE_MODULE} OR arg_INTERNAL_MODULE) + if(NOT ${arg_NO_PRIVATE_MODULE}) list(APPEND exported_targets ${target_private}) endif() set(export_name "${INSTALL_CMAKE_NAMESPACE}${target}Targets")