summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <[email protected]>2025-03-17 18:43:08 +0100
committerAlexey Edelev <[email protected]>2025-03-24 12:02:18 +0100
commitfc956519963ea962b93367523a9761f07dd16be7 (patch)
tree1cb68f347bb3dc203b3d0480cc7f55fd90a56d19
parent3978f3d5ec0ef0bf17181f586d1438750464cc30 (diff)
Make HostInfo versioned
Generate and install the HostInfoConfigVersion file for the HostInfo package. The package had no strict version compatibility as Qt modules before, so we avoid adding them here too. Pick-to: 6.5 6.8 6.9 Change-Id: Iaee43639dd87d911946c8ce72c4849f43599d08e Reviewed-by: Alexandru Croitor <[email protected]>
-rw-r--r--cmake/QtPostProcessHelpers.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake
index 180c207c7a2..5d8e299023d 100644
--- a/cmake/QtPostProcessHelpers.cmake
+++ b/cmake/QtPostProcessHelpers.cmake
@@ -566,7 +566,15 @@ function(qt_create_hostinfo_package)
INSTALL_DESTINATION "${install_destination}"
NO_SET_AND_CHECK_MACRO
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
- qt_install(FILES "${config_file_path}" DESTINATION "${install_destination}")
+
+ set(version_file "${QT_CONFIG_BUILD_DIR}/${package}/${package}ConfigVersion.cmake")
+ write_basic_package_version_file(
+ "${version_file}"
+ VERSION ${PROJECT_VERSION}
+ COMPATIBILITY AnyNewerVersion
+ ARCH_INDEPENDENT
+ )
+ qt_install(FILES "${config_file_path}" "${version_file}" DESTINATION "${install_destination}")
endfunction()
function(qt_generate_build_internals_extra_cmake_code)