From 6720f0204f5cfb95879859d15b4dc61975cb552a Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Tue, 10 Sep 2019 14:02:15 +0200 Subject: [PATCH] Don't propagate INSTALL_INTERFACE headers for modules with no syncqt If syncqt was not executed for a module, it will not have generated headers, so we should not propagate the include/${module} header location in that case. Change-Id: I6dc0628a11ababb4d237215a9f4d3fc331383848 Reviewed-by: Liang Qi Reviewed-by: Qt CMake Build Bot --- cmake/QtBuild.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 9435439553..d12ddc06b7 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -1325,7 +1325,7 @@ function(add_qt_module target) "$") endif() - if(NOT arg_NO_MODULE_HEADERS) + if(NOT arg_NO_MODULE_HEADERS AND NOT arg_NO_SYNC_QT) # For the syncqt headers list(APPEND public_includes "$") endif()