summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--cmake/QtBuild.cmake7
-rw-r--r--cmake/QtPostProcess.cmake8
-rw-r--r--src/corelib/CMakeLists.txt1
4 files changed, 9 insertions, 10 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a52bed4658..4b7803da43 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,9 +58,6 @@ if (QT_WILL_BUILD_TOOLS)
add_subdirectory(qmake)
endif()
-# Need to build qmake and other Core tools before exporting them.
-qt_export_tools(Core)
-
# As long as we use the mkspecs (for qplatformdefs.h), we need to always
# install it, especially when cross-compiling.
set(mkspecs_install_dir "${INSTALL_DATADIR}")
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index 3316fc4c30..758af7ebfe 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -1589,16 +1589,11 @@ set(QT_CMAKE_EXPORT_NAMESPACE ${QT_CMAKE_EXPORT_NAMESPACE})")
if(NOT ${arg_NO_PRIVATE_MODULE})
target_include_directories("${target_private}" INTERFACE ${interface_includes})
endif()
-
- if(NOT ${arg_DISABLE_TOOLS_EXPORT})
- qt_export_tools(${target})
- endif()
endfunction()
function(qt_export_tools module_name)
# If no tools were defined belonging to this module, don't create a config and targets file.
- # Guards against the case when doing a cross-build and the function is called manually and not
- # by add_qt_module.
+ # Guards against the case when doing a cross-build.
if(NOT "${module_name}" IN_LIST QT_KNOWN_MODULES_WITH_TOOLS OR CMAKE_CROSSCOMPILING)
return()
diff --git a/cmake/QtPostProcess.cmake b/cmake/QtPostProcess.cmake
index f0286b25f6..349d8e131b 100644
--- a/cmake/QtPostProcess.cmake
+++ b/cmake/QtPostProcess.cmake
@@ -332,6 +332,14 @@ function(qt_modules_process_android_dependencies)
endforeach()
endfunction()
+function(qt_create_tools_config_files)
+ # Create packages like Qt6CoreTools/Qt6CoreToolsConfig.cmake.
+ foreach(module_name ${QT_KNOWN_MODULES_WITH_TOOLS})
+ qt_export_tools("${module_name}")
+ endforeach()
+endfunction()
+
+qt_create_tools_config_files()
qt_internal_create_depends_files()
qt_generate_build_internals_extra_cmake_code()
qt_internal_create_plugins_files()
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt
index cbe87e406e..f4678562c6 100644
--- a/src/corelib/CMakeLists.txt
+++ b/src/corelib/CMakeLists.txt
@@ -253,7 +253,6 @@ add_qt_module(Core
WrapDoubleConversion::WrapDoubleConversion # special case
PUBLIC_LIBRARIES # special case:
Qt::Platform # special case:
- DISABLE_TOOLS_EXPORT # special case:
# special case begin
# Generated in QtBaseGlobalTargets
EXTRA_CMAKE_FILES ${QT_CORE_RESOURCE_GENERATED_FILE_PATH}