From 65c1ac1df63b7f62bc957024cc8f631c30d68d4f Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 26 May 2023 12:04:17 +0200 Subject: [PATCH] Avoid adding the redundant install rules for module headers If module doesn't contain headers we should skip adding install rule of the geneated by syncqt module headers, since the staging directory will not be created in this case. Change-Id: I89db5f1447d60cae48cd6ae4b9ef080dcf50e34c Reviewed-by: Alexandru Croitor --- cmake/QtSyncQtHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtSyncQtHelpers.cmake b/cmake/QtSyncQtHelpers.cmake index 1b0caed4d15..c1406cc7cbc 100644 --- a/cmake/QtSyncQtHelpers.cmake +++ b/cmake/QtSyncQtHelpers.cmake @@ -206,7 +206,7 @@ function(qt_internal_target_sync_headers target module_headers module_headers_ge endif() add_dependencies(sync_all_public_headers ${target}_sync_all_public_headers) - if(NOT is_3rd_party_library AND NOT is_framework) + if(NOT is_3rd_party_library AND NOT is_framework AND module_headers) # Install all the CaMeL style aliases of header files from the staging directory in one rule qt_install(DIRECTORY "${syncqt_staging_dir}/" DESTINATION "${module_install_interface_include_dir}"