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
This commit is contained in:
parent
b0dbfc3094
commit
6720f0204f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user