summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-09-10 14:02:15 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-09-10 14:19:35 +0000
commit6720f0204f5cfb95879859d15b4dc61975cb552a (patch)
tree1b2beac13e326ac16c0b066778df5fd61fe0cf47 /cmake
parentb0dbfc3094b9c3950643fc5acf7020e33825dd3e (diff)
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 <liang.qi@qt.io> Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuild.cmake2
1 files changed, 1 insertions, 1 deletions
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)
"$<BUILD_INTERFACE:${module_include_dir}>")
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 "$<INSTALL_INTERFACE:include/${module}>")
endif()