Install per-repo config.opt files for non-top-level builds

Counterpart of the config.opt files installation for the top-level
build.

Task-number: QTBUG-78749
Change-Id: I4b5b20dafc8a043c3b309235ef662f08f8ef0bb8
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2024-06-21 14:32:08 +02:00
parent fccc64fc4f
commit 7d0c56c236

View File

@ -381,6 +381,15 @@ macro(qt_build_repo_end)
if(NOT QT_SUPERBUILD)
qt_internal_qt_configure_end()
if(QT_WILL_INSTALL AND QT_INSTALL_CONFIG_INFO_FILES)
string(TOLOWER "${PROJECT_NAME}" repo_name)
qt_install(
FILES
"${CMAKE_BINARY_DIR}/config_${repo_name}.opt"
"${CMAKE_BINARY_DIR}/config_${repo_name}.summary"
DESTINATION ${INSTALL_DATADIR}
)
endif()
endif()
list(POP_BACK CMAKE_MESSAGE_CONTEXT)